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

Online Help

All Products    Maple    MapleSim


plottools

  

pyramid

  

generate 3-D pyramid plot object from a 2-D polygon

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

pyramid(options)

pyramid(P, base=b, height=h, apex=a, options)

Parameters

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.

Description

• 

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.

Examples

withplottools:

withplots:

Default square pyramid

displaypyramid

A triangular pyramid

Tpolygon0,0,2,1,1,3:

displaypyramidT,axes=normal,scaling=constrained

Very skew hexagonal pyramid

displaypyramidpolygonbynamehexagon,apex=0.8,0.8,scaling=constrained

The pyramid inherits plot properties from the base polygon.

Ppolygonbynameheptagram,color=Tan:

displayP,scaling=constrained

Graph of a pyramid with base P and height 0.5

displaypyramidP,height=0.5,base=0.5,scaling=constrained

Properties such as color can also be specified in the pyramid command.

displaypyramidpolygon0,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

Compatibility

• 

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

plottools:-polygon

plottools:-polygonbyname