Class which computes a CSG operation (OR, AND, SUB, etc) from 2 solid objects.
More...
#include <SolidViz/SoCSGOperation.h>
Public Types | |
| enum | OperationType { OR, AND, SUB, CUT, INSIDE_CUT, MERGE } |
Public Member Functions | |
| SoCSGOperation () | |
| SoCSGOperation (OperationType opType) | |
| void | setOperationType (OperationType opType) |
| OperationType | getOperationType () const |
| void | setSceneGraphs (const SoNode *objectA, const SoNode *objectB) |
| SoSeparator * | getSceneGraph () const |
Class which computes a CSG operation (OR, AND, SUB, etc) from 2 solid objects.
Each input solid object is given by a scene graph. The result is also given by a scene graph.
NOTE: This class is provided on an as-is basis, with no support or warranty.SolidViz Overview, SoCSGGroup SoSolidViz
| SoCSGOperation::SoCSGOperation | ( | ) |
Constructor.
| SoCSGOperation::SoCSGOperation | ( | OperationType | opType | ) |
Constructor.
| OperationType SoCSGOperation::getOperationType | ( | ) | const |
Gets the current operation.
| SoSeparator* SoCSGOperation::getSceneGraph | ( | ) | const |
Returns the result objectA OperationType objectB The scenegraph returned contains an SoFaceSet shape.
| void SoCSGOperation::setOperationType | ( | OperationType | opType | ) |
Defines the current operation.
Defines the 2 solid objects used for the CSG operation.