plottools
pyramid
generate 3-D pyramid plot object from a 2-D polygon
Calling Sequence
Parameters
Description
Examples
Compatibility
pyramid(options)
pyramid(P, base=b, height=h, apex=a, options)
P
-
plot POLYGONS data structure or string understood by polygonbyname
b
(optional) z-coordinate of the base of the pyramid; defaults to 0.
h
(optional) height of the pyramid; defaults to 1.
a
(optional) two entry list specifying the coordinate of the top of the pyramid from the base; defaults to the centroid of the points of P
options
(optional) equations of the form option=value. For a complete list, see plot/options.
The pyramid command takes a two-dimensional polygon and creates a three-dimensional regular pyramid of the height specified.
The option apex=a can be used to create an offset pyramid.
The plot data object produced by the pyramid command can be used in a PLOT3D data structure or displayed using the plots:-display command.
with⁡plottools:
with⁡plots:
Default square pyramid
display⁡pyramid⁡
A triangular pyramid
T≔polygon⁡0,0,2,1,1,3:
display⁡pyramid⁡T,axes=normal,scaling=constrained
Very skew hexagonal pyramid
display⁡pyramid⁡polygonbyname⁡hexagon,apex=0.8,0.8,scaling=constrained
The pyramid inherits plot properties from the base polygon.
P≔polygonbyname⁡heptagram,color=Tan:
display⁡P,scaling=constrained
Graph of a pyramid with base P and height 0.5
display⁡pyramid⁡P,height=0.5,base=0.5,scaling=constrained
Properties such as color can also be specified in the pyramid command.
display⁡pyramid⁡polygon⁡0,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=Gold,scaling=constrained,orientation=−85,5,5
The plottools[pyramid] command was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
See Also
plot/options
plot/structure
plots:-display
plottools:-polygon
plottools:-polygonbyname
Download Help Document