 extrude - Maple Help

plottools

 extrude
 extrude 2-D plot to 3-D plot 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 $\left(x,y,t\right)↦\left[f\left(x,y,t\right),g\left(x,y,t\right),h\left(x,y,t\right)\right]$ 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

 > $\mathrm{with}\left(\mathrm{plottools}\right):$
 > $p≔\mathrm{plot}\left(\mathrm{sin}\left(x\right)+\mathrm{cos}\left(3x\right),x=-5..5,\mathrm{thickness}=3\right)$ > $\mathrm{extrude}\left(p,1..2\right)$ > $\mathrm{BlueDisk}≔\mathrm{plots}:-\mathrm{display}\left(\mathrm{disk}\left(1,\mathrm{color}=\mathrm{blue}\right)\right):$$\mathrm{BlueDisk}$ > $\mathrm{extrude}\left(\mathrm{BlueDisk},0..10,\left(x,y,t\right)↦\left[x+\mathrm{cos}\left(t\right),y+\mathrm{sin}\left(t\right),t\right],\mathrm{numsegments}=20\right)$ > Compatibility

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