# intersect_7 (Wire/Solid)
# written by John Dannenhoffer

# generate box SolidBody and wire WireBody
BOX       0  0  0  3  2  1
STORE     theBox

BOX       3/2  -1  1/2  0  4  0
STORE     theWire

# show outline of theBox and endpoints of theWire
RESTORE   theBox
ATTRIBUTE _name  $theBox
ATTRIBUTE _viz   $off

POINT     3/2  -1  1/2
ATTRIBUTE _name  $theWire[beg]
POINT     3/2   3  1/2
ATTRIBUTE _name  $theWire[end]

# perform the INTERSECTion (WireBody)
RESTORE   theWire
RESTORE   theBox
INTERSECT
ASSERT    @itype 1

END
