GMOperatorsInterfaces Interface CATICGMTopExtrapolWireOpe
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATICGMTopExtrapolWireOpe
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 CATCGMCreateTopExtrapolWireOpe global function.
- Set the extrapolation parameters: continuity, extremity, length...
- Run with the Run method.
- Get the result body by the GetResult method.
- Release the operator with the Release method 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*,double)
- Defines the extremity from which the extrapolation must start and the length of the extrapolation.
- o
SetExtrapolLimit(CATVertex*,CATBody*)
- Defines the extremity from which extrapolation must start and the body to reach.
- 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
public virtual GetResult( | ) |
-
Returns the result of this operator.
- Returns:
- The pointer to the created body.
o GetResult
public virtual GetResult( | | iJourn) |
-
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
-
Runs this operator. Returns 0 if the operation completes properly.
o SetContinuityType
public virtual SetContinuityType( | | type) |
-
Defines the type of continuity.
- Parameters:
-
- type
- 1 for tangency continuity
2 for curvature continuity.
o SetExtrapolLimit
public virtual SetExtrapolLimit( | | iVertex, |
| | ilength) |
-
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 SetExtrapolLimit
public virtual SetExtrapolLimit( | | iVertex, |
| | iLimBody) |
-
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 SetNoSimplifOnLine
public virtual 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.
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: CATICGMTopExtrapolWireOpe.h
If needed, your Imakefile.mk should include the module: CATGMOperatorsInterfaces
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.