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

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

plottools

prism

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

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

>

withplottools:

>

withplots:

A triangular prism

>

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

>

displayprismT,axes=normal,scaling=constrained

>

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

>

Qsector0,0,2,3π4..5π4,color=DarkBlue:

>

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

Compatibility

The plottools[prism] command was introduced in Maple 16.

For more information on Maple 16 changes, see Updates in Maple 16 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /