DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


BoolOp Sample

BoolOp application demonstrates programmatic execution of Boolean Operations using IBooleanEntity_DG interface..

Running the application

The application performs the Boolean Operation selected in the "Operation" group box on the first two top-level objects of the model. The model can be changed using the File > Open menu option. An error message is displayed if the model has less than two top-level objects.

By default, after execution of the command the second object is invisible to show the result of the operation. The "Show Second Object" allows displaying it again.

The Reload button reloads the current model, discarding results of any operations.

If "Modify" radio button is selected in the "3D View Mode" group any object in the model can be selected and moved around. Hold shift button to translate. Change view point in "View" mode to translate in a different plane. Use Context menu > Model Explorer > "Position and Orientation" to move objects precisely.

Operations can be performed repeatedly on the result of the previous operation, probably after changing relative positions of the objects.

If "Intersection Curve" check box is on in Options group the executed operation will calculate intersection curve of two surfaces and the curve(s) will be added to the model and displayed in 3D with red color.

The "Calculate Angles" check box has no visible result. It allows the implementation code to run through demonstration of calculation of normal vectors to the surfaces at the intersection line and using them to calculate angles of the adjacent surface.

 See also: All samples