All Frameworks Class Hierarchy This Framework Indexes
TopologicalOperators Interface CATTopPattern
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATTopPattern
Class dedicated to pattern operations.
The pattern operation consists in creating multiple instances of an object
according to a transformation.
A pattern can be a:
- user pattern: the way the object is repeated is defined by a list of transformations
which is specified in the operator creation function.
- a rectangular pattern which is created by repeating an object along two directions.
- a circular pattern is created by repeating an object around an axis at various distances.
Whatever the pattern type, the list of tranformations is to be specified.
For rectangular and circular patterns, it is recommended to use the SetRectPattern
and SetCirPattern settings in addition to the list of transformations passed to the creation function.
This prevents the operator algorithm to launch useless computations. The performances are then enhanced.
The CATTopPattern operator follows the global frame of 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 body.
- A CATTopPattern operator is created with the CATCreateTopPattern global method:
It must be directly deleted after use. It is not streamable.
- Options can be precised with the SetXxx methods, before
asking for the computation with the Run method
- 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 factory.
Method Index
- o
SetCirPattern(int,CATMathTransformation*,int,CATMathTransformation*)
- Defines a canonical circular pattern.
- o
SetRectPattern(int,CATMathTransformation*,int,CATMathTransformation*)
- Defines a canonical rectangular pattern.
- o
SimplifyTool()
- Removes the internal faces between the body to be patterned and the support body.
Methods
o SetCirPattern
| public virtual SetCirPattern( | | NumberOfRows, |
| | RowTransfo, |
| | NumberOfColumns, |
| | ColumnsTransfo) |
-
Defines a canonical circular pattern. This method is to be used
in addition to the list of transformations (better performances).
- Parameters:
-
- NumberOfRows
- The number of circular rows.
- RowTransfo
- The anguler transformation to be applied to the object to pattern in the circular rows. It must not be
set to NULL except if there is only one row.
- NumberOfColumns
- The number of columns. The columns are sets of instances located along the circle radii.
- ColumnsTransfo
- The radius transformation to be applied to the object to pattern. It must not be
set to NULL except if there is only one column.
o SetRectPattern
| public virtual SetRectPattern( | | NumberOfRows, |
| | RowTransfo, |
| | NumberOfColumns, |
| | ColumnsTransfo) |
-
Defines a canonical rectangular pattern. This method is to be used
in addition to the list of transformations (better performances).
- Parameters:
-
- NumberOfRows
- The number of rows.
- RowTransfo
- The transformation to be applied to the object to pattern in the rows. It must not be
set to NULL except if there is only one row.
- NumberOfColumns
- The number of columns.
- ColumnsTransfo
- The transformation to be applied to the object to pattern in the columns. It must not be
set to NULL except if there is only one column.
o SimplifyTool
| public virtual SimplifyTool( | ) |
-
Removes the internal faces between the body to be patterned and the support body. This operation
is performed prior to creating new instances.
This object is included in the file: CATTopPattern.h
If needed, your Imakefile.mk should include the module: CATTopologicalOperators