All Frameworks Class Hierarchy This Framework Previous Next Indexes
TopologicalOperators Class CATCloseOperator
Mathematics.CATCGMVirtual
|
+---GeometricObjects.CATCGMOperator
|
+---NewTopologicalObjects.CATTopOperator
|
+---CATCloseOperator
Usage: you must use this class as is. You should never derive it.
public class CATCloseOperator
Class representing the operator that closes a skin body.
If the body is a closed shell (set of faces), it simply creates a volume body out of it.
If it is an open shell, it will try to close it with as many planar faces as possible.
The close operator can not create new edges. For instance, trying to
close a half-cylinder surface face will fail, because, even if it may
be closed by three planes, two new edges need to be created (at the
intersection of those planes).
To use it:
- Create it with the CATCreateCloseOperator global function.
- Tune it with appropriate options, using the SetXxx methods.
- Run it
- Get the resulting GetResult method. If you do not want
to keep these resulting body, use the CATICGMContainer.Remove method to remove them from the geometric factory, after the operator deletion.
- delete it after use with the usual C++ delete operator.
Constructor and Destructor Index
- o
~CATCloseOperator()
-
Method Index
- o
GetBooleanResult()
- Returns the body created from the Boolean operation between a given body and the thickened body.
- o
GetResult()
- Returns the resulting body of the closure operation.
- o
Run()
- Runs the operator.
- o
SetBooleanOperation(CATDynBooleanType,CATBody*,CATCGMJournalList*)
- Asks for a boolean operation with the output of the operator
(the so called closed skin) and iOperandBody.
Constructor and Destructor
o ~CATCloseOperator
public ~CATCloseOperator( | ) |
-
Methods
o GetBooleanResult
-
Returns the body created from the Boolean operation between a given body and the thickened body.
- Returns:
- The pointer to the Boolean result.
If you do not want to keep the resulting body,
use the
CATICGMContainer.Remove method to remove it from the geometric factory, after the operator deletion.
o GetResult
-
Returns the resulting body of the closure operation.
- Returns:
- The pointer to the created body.If you do not want
to keep these resulting body, use the
CATICGMContainer.Remove method to remove them from the geometric factory, after the operator deletion.
o Run
-
Runs the operator.
- Returns:
-
Legal values: 0 if ok, 1 if failed
o SetBooleanOperation
-
Asks for a boolean operation with the output of the operator
(the so called closed skin) and iOperandBody.
- Parameters:
-
- iReport
- The pointer to the journal to fill, if not NULL.
It can be different from the operator journal given in CATTopData.
This object is included in the file: CATCloseOperator.h
If needed, your Imakefile.mk should include the module: CATTopologicalOperators