prism - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


plottools

  

prism

  

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

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

prism(P, options)

prism(P, base=b, height=h, displacement=d, options)

Parameters

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.

Description

• 

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.

Examples

> 

with⁡plottools:

> 

with⁡plots:

A triangular prism

> 

T≔polygon⁡0,0,2,1,1,3:

> 

display⁡prism⁡T,axes=normal,scaling=constrained

> 

P≔sector⁡0,0,2,0..3⁢π4,color=DarkRed:

Graph of the sector P

> 

display⁡P,scaling=constrained

Graph of a prism with base P and height 0.5

> 

display⁡prism⁡P,height=0.5,scaling=constrained

> 

Q≔sector⁡0,0,2,3⁢π4..5⁢π4,color=DarkBlue:

> 

R≔sector⁡0,0,2,5⁢π4..2⁢π,color=DarkGreen:

> 

display⁡prism⁡P,height=2,prism⁡Q,base=0.5,prism⁡R,base=0.75,height=0.5,displacement=0,−0.5,scaling=constrained

> 

display⁡prism⁡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=Orchid,scaling=constrained

Compatibility

• 

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]

plottools