All Frameworks Class Hierarchy This Framework Previous Next Indexes
AdvancedTopologicalOpe Class CATTopSweep
Mathematics.CATCGMVirtual
|
+---GeometricObjects.CATCGMOperator
|
+---NewTopologicalObjects.CATTopOperator
|
+---TopologicalOperators.CATTopExtrude
|
+---CATTopSweep
Usage: you must use this class as is. You should never derive it.
public class CATTopSweep
Class representing the topological operator that sweeps a profile.
The operator extrudes
- either a wire body, and creates a skin body
- or a skin body, and creates a volume body.
In addition to the sweep creation, this operator provides the capability
to use a Boolean operation between a body (called trimming body), and the
created sweep. To obtain such result, use the CATTopExtrude.SetOperation and
CATTopExtrude.SetTrim mehods of the parent class.
The CATTopSweep operator follows the global frame of the topological operators
and satisfies the smart mechanism: the
input body is not modified. A new resulting body is created,
possibly sharing data with the input body. A CATTopPrism operator is not streamable.
To use it:
- Create it with the CATCreateTopSweep global function.
- Tune it with appropriate options, using the SetXxx methods. In particular,
define the type of limitations, and, if needed, the Boolean operation.
- Run it
- Get the resulting extrusion with the
CATTopExtrude.GetResult method, and the result of the Boolean operation with the
CATTopExtrude.GetBooleanResult method. If you do not want to keep these resulting bodies, use the
CATICGMContainer.Remove method to remove them from the geometric factory, after the operator deletion.
- Delete with the usual C++ delete operator afer use..
Constructor and Destructor Index
- o
~CATTopSweep()
- Destructor.
Method Index
- o
SetLimit(CATTopLimit,CATTopLimitType,CATBoolean,CATLength,CATGeometry*,CATBody*,CATTopPropagationType,CATBoolean)
- Defines the type of limitation of each extremity along the extrusion (center curve) direction.
- o
SetPullingDirection(CATMathVector*)
- Defines the pulling direction to replace the previously specified spine.
Constructor and Destructor
o ~CATTopSweep
public virtual ~CATTopSweep( | ) |
-
Destructor.
Methods
o SetLimit
-
Defines the type of limitation of each extremity along the extrusion (center curve) direction.
To be called for each extremity, if you do not want to keep
the default options of the global creation function.
- Parameters:
-
- iId
- The first or last extremity.
- iType
- The type of limit on the extremity.
- iIsAxisReverted
- The orientation.
Legal values: TRUE for the same orientation as the direction defined at the operator
creation, FALSE for an opposite orientation. In general, use TRUE for the start limit,
and FALSE for the end limit.
- iOffset
- Either the value of the offset if iType is valued to CatLimOffsetFromProfile,
or the value of the thickness if iIsThickness is valued to CATBoolean(1)
- iLimit
- The pointer to the geometry or the topology that stops the extrusion.
- iPropagationBody
- The pointer to the body which contains iLimit, thus allowing the
propagation of the trimming specification. To use if iType = CatLimUntil and
iPropagationFlag = CatPropagClosing or if iType = CatLimNextAlongAxis
or iType = CatLimLastAlongAxis
- iPropagationFlag
- The management of the propagation.
- iIsThickness
- Defines whether a thickness is applied from the body iPropagationBody to define the relimitation.
In this case, the value of the the thickness is iOffset
o SetPullingDirection
public virtual void SetPullingDirection( | CATMathVector* | iPullingDirection | = 0) = 0 |
-
Defines the pulling direction to replace the previously specified spine.
- Parameters:
-
- iPullingDirection
- The direction defining an implicit spine to be the projection of the guide onto a plane
normal to this direction.
This object is included in the file: CATTopSweep.h
If needed, your Imakefile.mk should include the module: CATAdvancedTopologicalOpe