Path: Common/ComponentModels
% Generate strut going from x1 to x2.
Set the origin at the center of the crossection otherwise the ends may
not look correct. Type ShapedStrut for a demo.
--------------------------------------------------------------------------
Form:
[v, f, volume] = ShapedStrut( x1, x2, c )
--------------------------------------------------------------------------
------
Inputs
------
x1 (3,1) Location of top
x2 (3,1) Location of bottom
c (1,1) Crossection data
.x (1,m) x locations
.y (1,m) y locations
-------
Outputs
-------
v (:,3) Vertices
f (:,3) Faces
volume (1,1) Volume of the strut
--------------------------------------------------------------------------
See also Polygon and Extrude.
--------------------------------------------------------------------------
Common: ComponentModels/Extrude Common: Graphics/DrawVertices Common: Graphics/Polygon Common: Quaternion/Q2Mat Common: Quaternion/U2Q Math: Linear/Mag Math: Linear/Unit
Back to the Common Module page