Path: Common/ComponentModels
% Generate a tube with specified inner and outer wall, and length. The origin is at the bottom. Type Tube for a demo. -------------------------------------------------------------------------- Form: [v, f] = TubeSection( rO, rI, l, ang1,ang2, n ) -------------------------------------------------------------------------- ------ Inputs ------ rO (1,1) Outer radius rI (1,1) Inner radius l (1,1) Length ang1 (1,1) Start angle ang2 (1,1) End angle n (1,1) Number of divisions ------- Outputs ------- v (:,3) Vertices f (:,3) Faces --------------------------------------------------------------------------
Common: Graphics/DrawVertices
Back to the Common Module page