Path: Common/ComponentModels
% Generate a tube with bends If nB is zero it will not smooth the bends. Type TubeWithBends for a demo. -------------------------------------------------------------------------- Form: [v, f] = TubeWithBends( r, p, nB, nC ) -------------------------------------------------------------------------- ------ Inputs ------ r (1,1) Radius of the tube p (3,:) Location of center points nB (1,1) Number of divisions at bends (should be odd) nC (1,1) Number of circumferential divisions ------- Outputs ------- v (:,3) Vertices f (:,3) Faces --------------------------------------------------------------------------
Common: Graphics/DrawVertices Common: Graphics/Plot3D Common: Quaternion/Q2Mat Common: Quaternion/U2Q Math: Linear/DupVect Math: Linear/Unit Math: MathUtils/Odd
Back to the Common Module page