SolidViz Demos

CSG Action

$OIVHOME/src/SolidViz/examples/csgAction/csgAction.cxx

An example of Constructive Solid Geometry. The action (SoCSGAction) traverses the scene graph and replaces all SoCSGGroup nodes with the set of polygons that form the surfaces of the result of the CSG expression (B2-A).

CSG Group

$OIVHOME/src/SolidViz/examples/csgGroup/csgGroup.cxx

An example of Constructive Solid Geometry using an SoCSGGroup to evaluate the expression (A-B-C).

CSG Machining

$OIVHOME/src/SolidViz/demos/CSGMaching/CSGMachining.cxx and CSGPathProfile.cxx

An example of Constructive Solid Geometry using an SoCSGGroup to evaluate the expression (A-B2). A is a wooden block that has one of four cutting paths cut out of the block using the expression (A-B2). The path is selected in the file open dialog box.

CSG Operation

$OIVHOME/src/SolidViz/examples/csgOperation/csgOperation.cxx

The utility SoCSGOperation computes the geometric result of a Boolean operation between two solid objects. The operation to preform is as follows:

O for OR operation.
A for AND operation.
S for SUB operation.
C for CUT operation.
M for MERGE operation.