All Frameworks Class Hierarchy This Framework Previous Next Indexes
AdvancedTopologicalOpe Class CATTopExtrapolWireOpe
Mathematics.CATCGMVirtual
|
+---GeometricObjects.CATCGMOperator
|
+---NewTopologicalObjects.CATTopOperator
|
+---CATTopExtrapolWireOpe
Usage: you must use this class as is. You should never derive it.
public class CATTopExtrapolWireOpe
Class defining the topological operator to extrapol a wire.
The operator produces a wire topology result of the extrapolation of the input wire.
The user can customize the extrapolation with the Setxxx methods to
- define the type of continuity : tangency or curvature.
- define the extremity from which the extrapolation starts.
- define the length of extrapolation or the body to reach.
When no support is defined,
the extrapolation in curvature "up to" is only possible if the body to reach is a wire and a plane;
the extrapolation in curvature of a given length is the extrapolated wire relimited by the plane
created at the given length from the chosen extremity.
When a support is defined,
the extrapolation in curvature is only possible on the faces with same geometry.
This operator follows the general scheme of the topological operators:
- Create the operator with the CATCreateTopExtrapolWireOpe global function.
- Set the extrapolation parameters: continuity, extremity, length...
- Run with the Run method.
- Get the result body by the GetResult method.
- Delete the operator with the usual C++ delete operator after use.
Method Index
- o
GetResult()
- Returns the result of this operator.
- o
GetResult(CATCGMJournalList*)
- Returns the pointer to the resulting body.
- o
Run()
- Runs this operator.
- o
SetContinuityType(int)
- Defines the type of continuity.
- o
SetExtrapolLimit(CATVertex*,CATBody*)
- Defines the extremity from which extrapolation must start and the body to reach.
- o
SetExtrapolLimit(CATVertex*,double)
- Defines the extremity from which the extrapolation must start and the length of the extrapolation.
- o
SetNoSimplifOnLine()
- By default the result of the extrapolation of a line in tangency
when no support is defined gives a body which only contains one edge.
Methods
o GetResult
-
Returns the result of this operator.
- Returns:
- The pointer to the created body.
o GetResult
-
Returns the pointer to the resulting body.
The pointer to the journal of the operation.
- Parameters:
-
- iJourn
- The pointer to the journal to fill.
- Returns:
- The pointer to the resulting body.
o Run
public virtual int Run( | )=0 |
-
Runs this operator. Returns 0 if the operation completes properly.
o SetContinuityType
public virtual void SetContinuityType( | int | type)=0 |
-
Defines the type of continuity.
- Parameters:
-
- type
- 1 for tangency continuity
2 for curvature continuity.
o SetExtrapolLimit
-
Defines the extremity from which extrapolation must start and the body to reach.
- Parameters:
-
- iVertex
- The vertex must be one of the two extremities of the wire to extrapolate.
The extrapolation is only possible from one vertex.
- iLimBody
- The body to reach can be:
- a wire (laid on the same support than the body to extrapol)
- a shell (must be plane when extrapolation in curvature mode and no support defined).
o SetExtrapolLimit
public virtual void SetExtrapolLimit( | CATVertex* | iVertex, |
| double | ilength)=0 |
-
Defines the extremity from which the extrapolation must start and the length of the extrapolation.
- Parameters:
-
- iVertex
- The vertex must be one of the two extremities of the wire to extrapolate.
The extrapolation is only possible from one vertex.
- ilength
- The length must be a positive value.
o SetNoSimplifOnLine
public virtual void SetNoSimplifOnLine( | )=0 |
-
By default the result of the extrapolation of a line in tangency
when no support is defined gives a body which only contains one edge.
The intermediate vertex has been cleaned.
To avoid this behaviour and keep the vertex use the following option.
This object is included in the file: CATTopExtrapolWireOpe.h
If needed, your Imakefile.mk should include the module: CATAdvancedTopologicalOpe