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

Online Help

All Products    Maple    MapleSim


plottools

  

extrude

  

extrude 2-D plot to 3-D plot

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

extrude(p, erange, transform, opts)

Parameters

p

-

a PLOT structure

erange

-

range or list, the values of the extrusion parameter in the mapping

transform

-

(optional) the extrusion mapping as described below

opts

-

zero or more options as described below

Options

• 

numsegments = integer

  

Specifies the number of copies of the original 2-D object to appear in the extrusion.

Description

• 

The extrude command takes a 2-D plot object and generates a 3-D plot in which the original object is extruded along a path specified by transform.

• 

The path parameter transform is a mapping of the form x,y,t↦f⁡x,y,t,g⁡x,y,t,h⁡x,y,t in which x and y are the coordinates of a point in the original 2-D object and t is the extrusion parameter, sampled from erange. The default value for transform is the identity function, which corresponds to a uniform extrusion of the original plot in the z direction over the interval specified by erange.

• 

In the case when erange is a range, the numsegments option specifies the number of sample points over this range and therefore the number of copies of the original object that should appear in the extrusion.

Examples

> 

with⁡plottools:

> 

p≔plot⁡sin⁡x+cos⁡3⁢x,x=−5..5,thickness=3

> 

extrude⁡p,1..2

> 

BlueDisk≔plots:-display⁡disk⁡1,color=blue:BlueDisk

> 

extrude⁡BlueDisk,0..10,x,y,t↦x+cos⁡t,y+sin⁡t,t,numsegments=20

Compatibility

• 

The plottools[extrude] command was introduced in Maple 18.

• 

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

See Also

CAD

plottools/exportplot

plottools/transform