All Frameworks Class Hierarchy This Framework Previous Next Indexes
TopologicalOperators Class CATTopSimplify
Mathematics.CATCGMVirtual
|
+---GeometricObjects.CATCGMOperator
|
+---NewTopologicalObjects.CATTopOperator
|
+---CATTopSimplify
Usage: you must use this class as is. You should never derive it.
public class CATTopSimplify
Class representing the operator that simplifies a whole body or selected cells of a body.
The CATTopSimplify operator follows the global frame of the topological operators
and satisfies the smart mechanism: the
input bodies are not modified. A new resulting body is created,
possibly sharing data with the input bodies.
- A CATTopSimplify operator is created with the CATCreateTopSimplify global function.
It must be directly deleted with the usual C++ delete operator after use.
It is not streamable.
- The computation is done by the Run function.
- The result is accessed with the GetResult method. If you do not want
to keep the resulting body, use the CATICGMContainer.Remove method to remove it from the geometric container, after the operator deletion.
- Volumes , faces or edges can be simplified.
- During the simplification, new cells are created to replace several adjacent cells
linked to the same or equivalent geometry.
- In case of edges border of faces, the simplification can only be done
- The simplification can only be done between adjacent cells of the same domain
- To enhance performance, it is strongly recommended to use the SetCellsToSimplify
method, if you want to simplify only some cells and not the whole body.
Constructor and Destructor Index
- o
~CATTopSimplify()
-
Method Index
- o
GetResult()
- Returns a pointer to the resulting body.
- o
Run()
- Runs this operator.
- o
SetCellsToRemove(CATLISTP(CATCell)&)
- Defines the cells to remove during simplification.
- o
SetCellsToSimplify(CATLISTP(CATCell)&)
- Defines the cells to simplify.
- o
SetFreezeMode(short)
- Defines the state of the resulting body.
Constructor and Destructor
o ~CATTopSimplify
public virtual ~CATTopSimplify( | ) |
-
Methods
o GetResult
-
Returns a pointer to the resulting body.
Must be called after the Run method only once. A second call returns a NULL
pointer.
- Returns:
- The pointer to the resulting body. Use
CATICGMContainer.Remove if you do not want to keep it.
o Run
public virtual int Run( | )= 0 |
-
Runs this operator.
o SetCellsToRemove
-
Defines the cells to remove during simplification.
- Parameters:
-
- iCellsToRemove
- The list of cells to remove. This restricts the simplification to the cells bounded
to these cells only.
This method is only currently available for edges.
This method can not be called together with the SetCellsToSimplify method.
o SetCellsToSimplify
-
Defines the cells to simplify.
- Parameters:
-
- iCellsToSimplify
- The list of cells to simplify. This restricts the simplification to these cells only.
This method is only currently available for faces.
This method can not be called together with the SetCellsToRemove method.
o SetFreezeMode
public virtual void SetFreezeMode( | short | iMode | = 1 )= 0 |
-
Defines the state of the resulting body.
- Parameters:
-
- iMode
- The state of the resulting body.
Legal values:
- 0
- The resulting CATBody is not frozen: it can be modified afterwards.
- 1
- The resulting CATBody is frozen: it cannot be modified afterwards.
This object is included in the file: CATTopSimplify.h
If needed, your Imakefile.mk should include the module: CATTopologicalOperators