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 C++ Sample

Overview

Implementation

All relevant functionality is implemented inside the CBoolOpDlg class. On the start CBoolOpDlg::Init() function obtains ISection interface of the first two objects and stores them in the m_pIEntity array.

The main work is done inside the CBoolOpDlg::OnExecute() handler.which queries the IBooolEntity interface from the first m_pIEntity and calls a IBooolEntity method for the selected operation supplying the second element of m_pIEntity array as the parameter. In the end the function makes sure that the View mode is current by calling OnModeView() method to allow user to review the result of the operation.

The DemonstrateInterentityLineAccess() demonstrates access to interentity curve and calculation of normals around the interentity. Notice usage of the IUserData to separate normals on the left and right hand side of the interentity curve.

 See also: All C++ Samples,   All samples