GMOperatorsInterfaces Interface CATICGMDynDraft
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATICGMDynDraft
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 .
- 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 CATICGMDynDraft operator.
- Angle
- The draft angle.
A CATICGMDynDraft 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 CATICGMDynDraft 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 CATICGMDynDraft operator is created with the CATCreateDynDraft global function:
It must be directly released with the Release method 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
method to remove it from the geometric factory.
- See also:
- , ,
Method Index
- o
Add(CATDynDraftDomain*)
- Adds a domain to draft.
- o
Add(CATBody*,CATOrientation,CATBoolean)
- Defines the parting element associated with this drafting operator.
- o
AddLimiting(CATBody*,CATOrientation,CATBoolean)
- Specifies a body that defines the boundary for a draft operation.
- o
SetJunctionMode(CATBoolean)
- Defines whether a draft ribbon can be branched into two ribbons.
- o
SetPrevisualizationMode(CATDynDraftPrevisualization)
- Asks for the computation of the construction paths of the draft.
- o
SetPrevisualizationOnly()
- Asks for the computation of the construction paths of the draft.
Methods
o Add
public virtual Add( | | iDraftDomain) |
-
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
public virtual Add( | | iPartingElement, |
| | iPartingOrientation | = CATOrientationUnknown, |
| | iIsPartingUntil | = FALSE) |
-
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 AddLimiting
public virtual AddLimiting( | | iLimitingElement, |
| | iLimitingOrientation | = CATOrientationUnknown, |
| | iIsLimitingUntil | = FALSE) |
-
Specifies a body that defines the boundary for a draft operation.
- Parameters:
-
- iLimitingElement
- The body to use as the limiting element.
- iLimitingOrientation
- The side of the limiting element on which the faces are drafted.
Legal values:
- CATOrientationUnknown
- The pulling direction defines the side.
- CATOrientationNegative
- The opposite of the natural orientation of the limiting element.
- CATOrientationPositive
- The natural orientation of the limiting element.
- iIsLimitingUntil
- In case of a limiting element that does not intersect the faces to draft, iIsLimitingUntil defines
whether the limiting element is used or not. By default, it is not.
o SetJunctionMode
public virtual SetJunctionMode( | | 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 SetPrevisualizationMode
public virtual SetPrevisualizationMode( | | iMode) |
-
Asks for the computation of the construction paths of the draft.
Can be use in debug purpose, in order to understand the configuration.
o SetPrevisualizationOnly
public virtual 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: CATICGMDynDraft.h
If needed, your Imakefile.mk should include the module: CATGMOperatorsInterfaces
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.