Role: To access data of the hybrid shape split feature. This data includes:
- The element to be cut (surface or curve)
- The cutting element ( surface, curve or point)
- An orientation to specify which side has to be kept
LICENSING INFORMATION: Creation of volume result requires GSO License
if GSO License is not granted , settting of Volume context has not effect
Use the CATIAHybridShapeFactory to create HybridShapeFeature object.
- See also:
Properties
- Property AutomaticExtrapolationMode() As
-
Gets or sets the automatic extrapolation mode status.
AutomaticExtrapolationMode = TRUE : Automatic extrapolation mode is on.
= FALSE : Automatic extrapolation mode is off.
This example retrieves in
AutoExtrapolModethe automatic extrapolation mode status for theSplithybrid shape feature.Dim AutoExtrapolMode As boolean AutoExtrapolMode = Split.AutomaticExtrapolationMode
BothSides the both sides computation mode
for the Split hybrid shape feature.
Dim BothSides As boolean BothSides = Split.BothSidesMode
Sub-element(s) supported (see object): , , or .
- Example:
-
This example retrieves in
CuttingElementthe cutting element for theSplithybrid shape feature.Dim CuttingElement As Reference Set CuttingElement = Split.CuttingElem
- Example:
-
This example retrieves in
Elementthe element to cut for theSplithybrid shape feature.Dim Element As Reference Set Element = Split.ElemToCut
ExtrapolateType the extrapolation type
for the Split hybrid shape feature.
Intersection the Intersection computation mode
for the Split hybrid shape feature.
Dim Intersection As boolean Intersection = Split.IntersectionComputation
Orientation specifies kept parts of cut feature.
When splitting a surface by a surface :
- If orientation value is 1: kept parts are specified by the "natural" normal to the cutting feature
- If orientation value -1: kept parts are specified by the inverse of the "natural" normal to the cutting feature
When splitting a surface by a curve :
- If orientation value is 1: kept parts are specified by the result of the cross product : normal(surface)^tangent(curve)
- If orientation value is -1: Kept parts are specified by the inverse of the result of the cross product : normal(surface)^tangent(curve)
When splitting a curve by a point or a curve (without support specified) :
- If orientation value is 1: Kept parts are from beginning of the curve to the first intersection,
and, if there is one, from the second to the third intersection and so on until the end of the curve.
- If orientation value is -1: Kept parts are from the first intersection to the second (if there is one),
and, if there is one, from the third to the fourth and so on until the end of the curve.
When splitting a curve on support:
- If orientation value is 1: Kept parts are specified by the result of the cross product : normal(support surface)^tangent(cutting curve)
- If orientation value is -1: Kept parts are specified by the inverse of the result of the cross product : normal(support surface)^tangent(cutting curve)
When splitting a curve by a surface:
- If orientation value is 1: Kept parts are specified by the inverse of the normal to the surface
- If orientation value is -1: Kept parts are specified by the normal to the surface
- Example
-
This example retrieves in
OrientValuethe orientation value for theSplithybrid shape feature.Dim OrientValue As long Set OrientValue = Split.Orientation
This support element may not exist.
Sub-element(s) supported (see object): .
- Example:
-
This example retrieves in
Elementthe support element for theSplithybrid shape feature.Dim Element As Reference Set Element = Split.Support
Result type:
- : 0 -> Surface
- : 1 -> Volume , The resultant split will be volume. If input is element to cut is volume.
Note: Setting volume result requires GSO License.
- Example:
This example retrieves in
ResultTypethe result type for theSplithybrid shape feature.Dim RType As long Set RType = Split.ResultType
Methods
- Sub AddCuttingElem( iElem, iOrientation)
-
Adds a cutting feature.
- Parameters:
-
- iElem
- cutting feature dd>
- iOrientation
- Orientation iOrientation = 1 : SameOrientation = -1 : InvertOrientation = 2 : KoOrientation dd>
- Sub AddElementToKeep( iElement)
-
Adds an element to specifications. This element will be kept.
- Parameters:
-
- iElement
- Element to keep. dd>
- Sub AddElementToRemove( iElement)
-
Adds an element to specifications. This element will be removed.
- Parameters:
-
- iElement
- Element to remove. dd>
- Func GetCuttingElem( iRank) As
-
Gets the cutting feature at a given index (a point, a curve or a surface).
- Parameters:
-
- oElem
- cutting feature dd>
- iRank
- Index of one of the cutting features dd>
- Func GetIntersection( iRank) As
-
Gets the intersection at a given index.
- Parameters:
-
- oElem
- Intersection dd>
- iRank
- Index of one of the intersection features dd>
- Func GetKeptElem( iRank) As
-
Gets the kept feature at a given index.
- Parameters:
-
- oElem
- Kept feature dd>
- iRank
- Index of one of the kept features dd>
- Func GetNbCuttingElem() As
-
Gets the number of cutting features.
- Parameters:
-
- oNbCuttingElem
- Number of cutting features dd>
- Func GetNbElementsToKeep() As
-
Gets the number of elements to keep.
- Parameters:
-
- oNbElementsToKeep
- Number of elements to keep dd>
- Func GetNbElementsToRemove() As
-
Gets the number of elements to remove.
- Parameters:
-
- oNbElementsToRemove
- Number of elements to remove dd>
- Func GetOrientation( iRank) As
-
Gets Orientation used to compute the split.
- Parameters:
-
- oOrientation
- Orientation dd>
- iRank
- index of the cutting feature oOrientation = 1 : SameOrientation = -1 : InvertOrientation = 2 : KoOrientation dd>
- Func GetOtherSide() As
-
Gets the other side.
- Parameters:
-
- oElem
- Other side dd>
- Func GetRemovedElem( iRank) As
-
Gets the removed feature at a given index.
- Parameters:
-
- oElem
- Removed feature dd>
- iRank
- Index of one of the removed features dd>
- Sub InvertOrientation()
- Inverts the orientation used to compute the split.
- Sub RemoveCuttingElem( iElem)
-
Removes a cutting feature.
- Parameters:
-
- iElem
- cutting feature dd>
- Sub RemoveElementToKeep( iRank)
-
Removes an element from specifications.
- Parameters:
-
- iRank
- Index of the kept element. dd>
- Sub RemoveElementToRemove( iRank)
-
Removes an element from specifications.
- Parameters:
-
- iRank
- Index of the removed element. dd>
- Sub SetOrientation( iRank, iOrientation)
-
Sets the orientation used to compute the split.
- Parameters:
-
- iOrientation
- Orientation dd>
- iRank
- index of the cutting feature iOrientation = 1 : SameOrientation = -1 : InvertOrientation = 2 : KoOrientation dd>