# intersect_4 (Sheet/Solid) # written by John Dannenhoffer # generate box SheetBody and cylinder SolidBody BOX 0 0 0 3 2 1 EXTRACT 0 STORE theBox CYLINDER 3/2 -1 1/2 3/2 3 1/2 1/4 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 both INTERSECTions (SheetBodys) RESTORE theBox RESTORE theCylinder INTERSECT none -1 ASSERT @itype 2 END