DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


PlanaPlanar Ops VB6 Sample

Overview

Implementation

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.