All Frameworks Class Hierarchy This Framework Previous Next Indexes
NewTopologicalObjects Class CATTopSewSkin
Mathematics.CATCGMVirtual
|
+---GeometricObjects.CATCGMOperator
|
+---NewTopologicalObjects.CATTopOperator
|
+---CATTopSewSkin
Usage: you must use this class as is. You should never derive it.
public class CATTopSewSkin
Interface representing the operator to sew a skin onto a body (solid or skin).
Sewing is a boolean operation combining a surface with a body.
This capability adds or removes material by modifying the input body.
You can sew all types of surfaces onto bodies as long as there is no gap greater
than the tolerance (default value 0.1) between the
bording edges of the surface to be sewn and the initial body.
Either the borders of the surface must lay on
the body (gaps <= tolerance), or the surface must fully cross the body.
To use this operator:
- Create it with the CATCreateSewSkin 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.
Method Index
- o
GetEdgesAndGaps(CATLISTP(CATEdge)&,CATListOfDouble&)
- Retrieves the gaps between the bording edges of the skin to be
sewn and the input body.
- o
GetResult(CATCGMJournalList*)
- Returns the body resulting from the sewing operation.
- o
GetSelectionSide()
-
- o
LogDeletionOnImmersedEdges(CATBoolean)
- To be used only when sewing a skin on a skin.
- o
ResultIsClosed()
- Checks whether a sewing operation onto a skin (skin/skin operation)
results in a closed skin.
- o
Run()
- Runs the operator.
- o
SetEdgeMapping(CATEdge*,CATCell*)
- To be used to map a free edge of the skin onto a cell of the body (edge or face),
to avoid unnecessary calculations.
- o
SetSelectionSide(CATBoolean)
- To be used to indicate the side where the material is to be added or kept.
- o
SetSimplificationMode(CATBoolean)
- To be used to specify whether the simplification mode is to be applied.
- o
SetTolerance(double)
- To be used to set a tolerance for the Sewing.
Methods
o GetEdgesAndGaps
-
Retrieves the gaps between the bording edges of the skin to be
sewn and the input body.
- Parameters:
-
- ioEdges
- The list of edges.
- ioGaps
- The associated list of gaps.
o GetResult
-
Returns the body resulting from the sewing operation.
- Parameters:
-
- ioJournal
- The topological journal.
- Returns:
- The resulting body.
o GetSelectionSide
public virtual CATBoolean GetSelectionSide( | )const = 0 |
-
- Returns:
- The selection side.
o LogDeletionOnImmersedEdges
public virtual void LogDeletionOnImmersedEdges( | CATBoolean | iLogDeletion | = FALSE) = 0 |
-
To be used only when sewing a skin on a skin.
If set to FALSE, enable to follow the boundary of the skin to sew through the report.
o ResultIsClosed
-
Checks whether a sewing operation onto a skin (skin/skin operation)
results in a closed skin.
- Returns:
- TRUE if the result is a closed shell, otherwise returns FALSE.
Always returns TRUE when applied to a solid/skin operation.
o Run
public virtual int Run( | )= 0 |
-
Runs the operator.
o SetEdgeMapping
public virtual void SetEdgeMapping( | CATEdge* | iMappedFreeEdge, |
| CATCell* | iTargetCell) = 0 |
-
To be used to map a free edge of the skin onto a cell of the body (edge or face),
to avoid unnecessary calculations.
- Parameters:
-
- iMappedFreeEdge
- The free edge of the skin body that is mapped.
- iTargetCell
- The cell of the trimming body on which the edge is mapped. It can be a edge or a face.
o SetSelectionSide
public virtual void SetSelectionSide( | CATBoolean | iSameSkinSide) = 0 |
-
To be used to indicate the side where the material is to be added or kept.
Note that if the side is not properly specified, the sewing operation
onto a solid may produce an exception.
o SetSimplificationMode
public virtual void SetSimplificationMode( | CATBoolean | iSimplifMode) = 0 |
-
To be used to specify whether the simplification mode is to be applied.
Using this option (TRUE), if in the resulting solid there are connected
faces defined on the same geometric support (faces separated by smooth edges),
these faces will be merged into one single face
o SetTolerance
public virtual void SetTolerance( | double | iTolerance) = 0 |
-
To be used to set a tolerance for the Sewing.
- Parameters:
-
- iTolerance
- The input tolerance.
This object is included in the file: CATTopSewSkin.h
If needed, your Imakefile.mk should include the module: CATTopologicalObjects