plottools - Maple Programming Help

Home : Support : Online Help : Graphics : Packages : Plot Tools : plottools/cutout

plottools

 cutout
 cut windows in POLYGONS

 Calling Sequence cutout(p, r) cutout([p1, p2, ... ], r)

Parameters

 p - POLYGONS structure or a list thereof r - cut ratio, ranging from 0 to 1

Description

 • For each polygon in a given POLYGONS structure, this command cuts out a smaller polygon from the middle of the given one. The polygon being cut out is similar to the original and its center and orientation are the same as the original.  The ratio of similarity is specified with the parameter r. This command complements the cutin command.
 • This command produces a POLYGONS object, which can be used in a PLOT3D data structure, or displayed using the plots[display] command.
 • The cutout command forces a display style of PATCHNOGRID. Other options to style are ignored.

Examples

 > $\mathrm{with}\left(\mathrm{plottools}\right):$
 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $\mathrm{display}\left(\mathrm{cutout}\left(\mathrm{octahedron}\left(\left[1,1,1\right]\right),\frac{1}{3}\right)\right)$
 > $p≔\mathrm{convert}\left(\mathrm{plot3d}\left(\mathrm{sin}\left(xy\right),x=-2..2,y=-1..1,\mathrm{grid}=\left[4,4\right]\right),\mathrm{POLYGONS}\right):$
 > $\mathrm{display}\left(\mathrm{cutout}\left(p,\frac{1}{3}\right),\mathrm{axes}=\mathrm{frame},\mathrm{orientation}=\left[-30,70\right]\right)$
 > $p≔\mathrm{display}\left(\mathrm{cutout}\left(\mathrm{tetrahedron}\left(\left[0,0,0\right]\right),\frac{3}{4}\right)\right):$
 > $a≔\left[\left[0,\mathrm{π},0\right],\left[0,0,\mathrm{π}\right],\left[\mathrm{π},0,0\right],\left[\mathrm{π},\mathrm{π},0\right],\left[\mathrm{π},0,\mathrm{π}\right],\left[0,\mathrm{π},\mathrm{π}\right],\left[\mathrm{π},\mathrm{π},\mathrm{π}\right],\left[0,0,0\right]\right]:$
 > $\mathrm{display}\left(\mathrm{seq}\left(\mathrm{rotate}\left(p,\mathrm{op}\left(i\right)\right),i=a\right),\mathrm{scaling}=\mathrm{constrained},\mathrm{shading}=\mathrm{zgrayscale},\mathrm{lightmodel}=\mathrm{light2}\right)$