DRAWLINE3D Draw a 3D line clipped by the current axes. drawLine3d(LINE) draws the line LINE on the current axis, by clipping with the current axis. drawLine3d(LINE, PARAM, VALUE) accepts parameter/value pairs, like for plot function. Color of the line can also be given as a single parameter. drawLine3d(AX,...) plots into AX instead of GCA. H = drawLine3d(...) returns a handle to the created line object. If the line is not clipped by the axis, function returns -1. Example % draw a sphere together with the three main axes figure; hold on; drawSphere([40 30 20 30]); view(3); axis equal; axis([-20 80 -20 80 -20 80]) drawLine3d([0 0 0 1 0 0], 'k'); drawLine3d([0 0 0 0 1 0], 'k'); drawLine3d([0 0 0 0 0 1], 'k'); light; See also: lines3d, createLine3d, clipLine3d, drawRay3d, drawEdge3d
Package: matgeom