# intersect_3 (Solid/Wire) # 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 theBox RESTORE theWire INTERSECT ASSERT @itype 1 END