TriangularTruss:

Path: Common/ComponentModels

% Generate a triangular truss going from x1 to x2.
 The truss is inscribed in a circle of radius d. If n is omitted n = 10.

 Type TriangularTruss for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f, l] = TriangularTruss( x1, x2, ds, n )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x1         (3,1) Location of top
   x2         (3,1) Location of bottom
   d          (1,1) Diameter
   n          (1,1) Number of divisons 

   -------
   Outputs
   -------
   v         (:,3)  Vertices
   f         (:,3)  Faces
   l         (1,1)  Total length of the truss elements

--------------------------------------------------------------------------

Children:

Common: Graphics/DrawVertices
Common: Quaternion/Q2Mat
Common: Quaternion/U2Q
Math: Linear/Mag
Math: Linear/Unit
Math: Trigonometry/CosD
Math: Trigonometry/SinD

Back to the Common Module page