draw - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


geom3d

  

draw

  

create a three-dimensional plot of objects supported in the geom3d package

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

draw(obj,...)

draw([obj_1,...,obj_n],...)

Parameters

obj

-

object to be plotted

[obj_1, ..., obj_n]

-

list of object(s) to be plotted

Description

• 

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.

Examples

withgeom3d:

pointo,0,0,0:r1.:

Define small stellated dodecahedron p with center o, radius r:

SmallStellatedDodecahedronp,o,r:

Find the reciprocal polyhedron dp of p with respect to the sphere s

dualitydp,p,spheres,o,MidRadiusp:

drawpcolor=red,dpcolor=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

icosahedronp1,pointo,0,0,0,1

p1

(1)

stellatep2,p1,4

p2

(2)

pdrawp2:

qplottoolshomothetyp,3:

plotsdisplayp,q,scaling=constrained,orientation=30,95

See Also

geom3d

geom3d/objects

geom3d/transformation