Path: Common/ComponentModels
% Compute the vertices for a cone. The cone emanates from p and points in direction u. If no outputs are specified the cone will be drawn in a new figure. Type Cone for a demo. -------------------------------------------------------------------------- Form: [v, f] = Cone( p, u, halfAngle, l, n) -------------------------------------------------------------------------- ------ Inputs ------ p (3,1) Location of apex u (3,1) Cone axis unit vector halfAngle (1,1) Cone half angle (rad) l (1,1) Length of cone n (1,1) Number of divisions ------- Outputs ------- v (:,3) Vertices f (:,3) Faces --------------------------------------------------------------------------
Common: ComponentModels/Frustrum Common: Graphics/DrawVertices Common: Quaternion/QForm Common: Quaternion/U2Q Math: Linear/DupVect
Back to the Common Module page