PlanaPlanar Ops VB6 Sample
OverviewImplementation
Control of the clipping plane on Show and Enable check boxes is done via the
IClipPlane interface stored in the m_plane
variable. The interface is obtained the GetPlane() sub
This method also obtains IAxis interface, which gives
access to the location and orientation of the plane. The interface is stored in
the m_iAxis variable.
The main cutting operation is performed by the ButtonCut_Click()
sub on "Cut Permanently" button click. Depending on state of the "Keep Solid.."
check box the method uses either
IBoolSection.Subtract() or
IBoolSectionEx.Execute() methods. Notice that the second object in the
operation is an abstract one, i.e. it is not a member of the model, although it
is represented by ISection iSectPlane interface. iSectPlane
is created in CreatePlane() which creates the
plane using object generator and positions
it using a new IAxis interface.
|