plottools
cutout
cut windows in POLYGONS
Calling Sequence
Parameters
Description
Examples
cutout(p, r)
cutout([p1, p2, ... ], r)
p
-
POLYGONS structure or a list thereof
r
cut ratio, ranging from 0 to 1
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.
with⁡plottools:
with⁡plots:
display⁡cutout⁡octahedron⁡1,1,1,13
p≔convert⁡plot3d⁡sin⁡x⁢y,x=−2..2,y=−1..1,grid=4,4,POLYGONS:
display⁡cutout⁡p,13,axes=frame,orientation=−30,70
p≔display⁡cutout⁡tetrahedron⁡0,0,0,34:
a≔0,π,0,0,0,π,π,0,0,π,π,0,π,0,π,0,π,π,π,π,π,0,0,0:
display⁡seq⁡rotate⁡p,op⁡i,i=a,scaling=constrained,shading=zgrayscale,lightmodel=light2
See Also
convert/POLYGONS
plot3d
plot3d/structure
plots:-display
plottools:-cutin
Download Help Document