plottools
prism
generate 3-D prism plot object from a 2-D polygon
Calling Sequence
Parameters
Description
Examples
Compatibility
prism(P, options)
prism(P, base=b, height=h, displacement=d, options)
P
-
plot POLYGONS data structure
b
(optional) z-coordinate of the base of the prism; defaults to 0.
h
(optional) height of the prism; defaults to 1.
d
(optional) two entry list specifying the [x,y] displacement of the top of the prism from the base; defaults to [0,0].
options
(optional) equations of the form option=value. For a complete list, see plot/options.
The prism command takes a two-dimensional polygon plot structure and creates a three-dimensional regular prism of the height specified.
The option displacement=d can be used to create an oblique prism.
The plot data object produced by the prism command can be used in a PLOT3D data structure or displayed using the plots[display] command.
withplottools:
withplots:
A triangular prism
T≔polygon0,0,2,1,1,3:
displayprismT,axes=normal,scaling=constrained
P≔sector0,0,2,0..3π4,color=DarkRed:
Graph of the sector P
displayP,scaling=constrained
Graph of a prism with base P and height 0.5
displayprismP,height=0.5,scaling=constrained
Q≔sector0,0,2,3π4..5π4,color=DarkBlue:
R≔sector0,0,2,5π4..2π,color=DarkGreen:
displayprismP,height=2,prismQ,base=0.5,prismR,base=0.75,height=0.5,displacement=0,−0.5,scaling=constrained
displayprismpolygon0,1,0,2,0.5,2.75,1.25,3,2,2.75,2.5,2.25,1.75,1.5,2.5,0.75,2,0.25,1.25,0,0.5,0.25,color=Orchid,scaling=constrained
The plottools[prism] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
plot/options
plot/structure
plots[display]
Download Help Document