Home Page > Programming Samples and Tutorials > Overview > BoolOp
BoolOp Sample Overview
BoolOp Sample
BoolOp is an application which
demonstrates programmatic execution of Boolean Operations using
IBooolSection 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.
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.
IImplementation
Please select your language:
Delphi
C#/a>
VB .NET
C++
See also: All samples
|