# subtract_2 (Solid/Sheet) # written by John Dannenhoffer # generate box SolidBody and cylinder SheetBody BOX 0 0 0 3 2 1 STORE theBox CYLINDER 3/2 -1 1/2 3/2 3 1/2 1/4 EXTRACT 0 STORE theCylinder # show outlines of theBox and theCylinder RESTORE theBox ATTRIBUTE _name $theBox ATTRIBUTE _viz $off RESTORE theCylinder ATTRIBUTE _name $theCylinder ATTRIBUTE _viz $off # perform the SUBTRACTion (scribed SolidBody) RESTORE theBox RESTORE theCylinder SUBTRACT ASSERT @itype 3 END