All Frameworks Class Hierarchy This Framework Previous Next Indexes
TopologicalOperators Class CATDynDraft
Mathematics.CATCGMVirtual
|
+---GeometricObjects.CATCGMOperator
|
+---NewTopologicalObjects.CATTopOperator
|
+---TopologicalOperators.CATDynOperator
|
+---CATDynDraft
Usage: you must use this class as is. You should never derive it.
public class CATDynDraft
Class defining the operator to draft faces of a 3D body.
When working with castings and forgings, draft operations are needed to allow a part
to be extracted from its mold. The parameters defining a drafting operation are:
- Pulling direction
- The direction in which the mold of the part is extracted
- Neutral element
- The intersection between the neutral element and the faces to draft
defines the neutral curve, where the body remains the same.
On both sides of the neutral curve, matter is either added or subtracted, or both in some cases,
according to the pulling
direction and the value of the angle. The neutral element does not need to split any of the selected faces.
However, the underlying surfaces have to intersect.
The neutral curve can also be directly defined by a reflect line computation, see CATDynDraftDomain.
- Parting element
- This optional element splits the faces in two sets. One must choose which
set of faces to draft
- either by defining an orientation value with respect to the parting element (called parting orientation)
- or, otherwise, by using the pulling direction.
The parting element can be the same as the neutral element.
There is at most one parting element associated with a CATDynDraft operator.
- Angle
- The draft angle.
A CATDynDraft operator groups in a same operator several draft operations:
- The CATDynDraftDomain groups all the faces to draft with regards to the same pulling direction,
- The CATDynDraftRibbon groups all the connected faces to draft with regards to the same pulling direction.
- The CATDynDraftAngle groups all the faces to draft with the same angle,
defined with regards to the same pulling direction. At present, the operator does not support different
angle values.
By default, a ribbon is automatically propagated by following the tangential
continuity of its support.
The CATDynDraft operator follows the global frame of the 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 bodies.
- A CATDynDraft operator is created with the CATCreateDynDraft global function:
It must be directly deleted with the usual C++ delete operator after use. It is not streamable.
- Options can be precised (such as the domain to draft) with the SetXxx and Add
methods, before
asking for the computation with the Run method. The Add method can only be called once
for a draft operation.
- In both cases, 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.
- See also:
- CATDynDraftDomain, CATDynDraftRibbon, CATDynDraftAngle
Constructor and Destructor Index
- o
~CATDynDraft()
-
Method Index
- o
Add(CATBody*,CATOrientation,CATBoolean)
- Defines the parting element associated with this drafting operator.
- o
Add(CATDynDraftDomain*)
- Adds a domain to draft.
- o
Add(CATPlane*,CATOrientation,CATBoolean)
-
- o
Add(CATSurface*,CATOrientation,CATBoolean)
-
- o
SetJunctionMode(CATBoolean)
- Defines whether a draft ribbon can be branched into two ribbons.
- o
SetPrevisualizationOnly()
- Asks for the computation of the construction paths of the draft.
Constructor and Destructor
o ~CATDynDraft
public virtual ~CATDynDraft( | ) |
-
Methods
o Add
-
Defines the parting element associated with this drafting operator.
- Parameters:
-
- iPartingElement
- The pointer to the parting body.
- iPartingOrientation
- The side of the parting element where the faces are drafted.
Legal values:
- CATOrientationUnknown
- The pulling direction defines the side.
- CATOrientationNegative
- The opposite of the natural orientation of the parting element.
- CATOrientationPositive
- The natural orientation of the parting element.
- iIsPartingUntil
- In case of a parting element that does not intersect the faces to draft, iIsPartingUntil defines
whether the parting element is used or not. By default, it is not. To be used in case of reflect line draft only.
o Add
-
Adds a domain to draft.
The Add method can only be called once
for a draft operation.
- Parameters:
-
- iDraftDomain
- The pointer to the domain to add to the drafting operation.
o Add
-
- Deprecated:
- V5R15
Use the Add method whose first argument is a CATBody
Defines the parting element associated with this drafting operator.
- Parameters:
-
- iPartingElement
- The pointer to the parting plane.
- iPartingOrientation
- The side of the parting element where the faces are drafted.
Legal values:
- CATOrientationUnknown
- The pulling direction defines the side.
- CATOrientationNegative
- The opposite of the natural orientation of the parting element.
- CATOrientationPositive
- The natural orientation of the parting element.
- iIsPartingUntil
- In case of a parting element that does not intersect the faces to draft, iIsPartingUntil defines
whether the parting element is used or not. By default, it is not. To be used in case of reflect line draft only.
o Add
-
- Deprecated:
- V5R15
Use the Add method whose first argument is a CATBody
Defines the parting element associated with this drafting operator.
- Parameters:
-
- iPartingElement
- The pointer to the parting surface.
- iPartingOrientation
- The side of the parting element where the faces are drafted.
Legal values:
- CATOrientationUnknown
- The pulling direction defines the side.
- CATOrientationNegative
- The opposite of the natural orientation of the parting element.
- CATOrientationPositive
- The natural orientation of the parting element.
- iIsPartingUntil
- In case of a parting element that does not intersect the faces to draft, iIsPartingUntil defines
whether the parting element is used or not. By default, it is not. To be used in case of reflect line draft only.
o SetJunctionMode
public virtual void SetJunctionMode( | CATBoolean | iJunctionMode) |
-
Defines whether a draft ribbon can be branched into two ribbons.
This may happen when the set of faces to draft is itself bifurcating.
- Parameters:
-
- iJunctionMode
- The branch mode.
Legal values: TRUE if it can, FALSE otherwise.
o SetPrevisualizationOnly
public virtual void SetPrevisualizationOnly( | ) |
-
Asks for the computation of the construction paths of the draft.
To obtain the initial wire representing
either the intersection of the neutral element with the initial body or the reflect lines.
Can be use in debug purpose, in order to understand the configuration.
This object is included in the file: CATDynDraft.h
If needed, your Imakefile.mk should include the module: CATTopologicalOperators