geom3d
draw
create a three-dimensional plot of objects supported in the geom3d package
Calling Sequence
Parameters
Description
Examples
draw(obj,...)
draw([obj_1,...,obj_n],...)
obj
-
object to be plotted
[obj_1, ..., obj_n]
list of object(s) to be plotted
The routine draw provides the graphical visualization of all objects supported in the geom3d package.
A typical call to the draw function is draw([ obj_1(localopts_1),...,obj_n(localopts_n) ], globalopts) where obj_1, ..., obj_n are geometric objects, localopts_1, ..., localopts_n are local options for a particular object, and globalopts are options which apply to all of the objects.
localopts_i is a sequence of type equation. The set of options allowed for localopts_i is color, contours, grid, gridstyle, linestyle, numpoints, style, symbol, symbolsize, thickness, cutout, cutin, transparency. The contours, grid, numpoints, cutout and cutin options can only be provided as local options.
For detailed descriptions of the options, see plot3d/option.
globalopts: the set of options allowed for globalopts is the same as that for plot3d. Besides these options, two options cutin, cutout are added. See plottools[cutin] and plottools[cutout]. Also see plot/options for detailed descriptions of other options.
Note that the localopts_i that are defined for an object have precedence over globalopts when obj_i is drawn.
The command with(geom3d) allows the use of the short form of this command.
with⁡geom3d:
point⁡o,0,0,0:r≔1.:
Define small stellated dodecahedron p with center o, radius r:
SmallStellatedDodecahedron⁡p,o,r:
Find the reciprocal polyhedron dp of p with respect to the sphere s
duality⁡dp,p,sphere⁡s,o,MidRadius⁡p:
draw⁡p⁡color=red,dp⁡color=green,cutout=78,lightmodel=light4,title=`dual of small stellated dodecahedron`,orientation=0,32
The commands to create the plot from the Plotting Guide are
icosahedron⁡p1,point⁡o,0,0,0,1
p1
stellate⁡p2,p1,4
p2
p≔draw⁡p2:
q≔plottoolshomothety⁡p,3:
plotsdisplay⁡p,q,scaling=constrained,orientation=30,95
See Also
geom3d/objects
geom3d/transformation
Download Help Document