All Frameworks  Object Hierarchy  This Framework  Indexes   

HybridShapeCorner (Object)

Represents the hybrid shape corner feature.
Role: To access the data of the hybrid shape corner object. This data includes:

Use the HybridShapeFactory to create a HybridShapeCorner object.


Property Index

BeginOfCorner
Return or Set the number of the beginning curve of the corner.
CornerType
Returns or sets the Corner Type.
Direction
Returns or sets the 3D corner direction.
DiscriminationIndex
Returns or set the discrimination index of the current corner.
FirstElem
Returns or sets the corner first reference element.
FirstOrientation
Returns or sets the orientation of the corner first reference element.
FirstTangentOrientation
Returns or sets the tangent orientation of the corner first reference element.
OnVertex
Returns or sets the On Vertex mode off/on.
Radius
Returns the corner radius.
SecondElem
Returns or sets the corner second reference element.
SecondOrientation
Returns or sets the orientation of the corner second reference element.
SecondTangentOrientation
Returns or sets the tangent orientation of the corner second reference element.
Support
Returns or sets the corner support.
TrimMode
Returns or sets whether the corner reference curves are or should be trimmed.
Trim
Returns or sets whether the corner reference curves are or should be trimmed.

Method Index

InvertFirstOrientation
Inverts the first reference element orientation used to compute the corner.
InvertSecondOrientation
Inverts the second reference element orientation used to compute the corner.

Properties


o Property BeginOfCorner() As
Return or Set the number of the beginning curve of the corner. This parameter is used to stabilize the resulting corner
Example:
This example set the beginning wire index of the hybShpCorner hybrid shape corner
 hybShpCorner.BeginOfCorner = 1
 
o Property CornerType() As
Returns or sets the Corner Type.
Example:
This example retrieves the Corner Type the hybShpCorner hybrid shape corner in CornerType.
 Dim lCornerType As long
 lCornerType = hybShpCorner.CornerType
 
o Property Direction() As
Returns or sets the 3D corner direction.
Legal values: This can be a CATIAHybridShapeDirection.
See also:
HybridShapeDirection
Example:
This example sets the direction of the hybShpCorner hybrid shape 3D corner as the existing direction hybShpDirection.
 hybShpCorner.Direction = hybShpDirection
 
o Property DiscriminationIndex() As
Returns or set the discrimination index of the current corner. Several resulting solutions produced by the operator can be same oriented regarding to the input wire bodies. In such a case, they are sorted in order to distinguish them. The Sequence FirstOrientation - SecondOrientation - DiscriminationIndex allows you to identifie a unique one-domain solution.
Example:
This example set the discrimination index of the hybShpCorner hybrid shape corner
 hybShpCorner.DiscriminationIndex = 2
 
o Property FirstElem() As
Returns or sets the corner first reference element.
Legal values: This can be a curve or a point.
Sub-element(s) supported (see
Boundary object): TriDimFeatEdge, BiDimFeatEdge or Vertex.
Example:
This example retrieves the first reference element of the hybShpCorner hybrid shape corner in firstElt.
 Dim fisrtElt As CATIAReference
 fisrtElt = hybShpCorner.FirstElem
 
o Property FirstOrientation() As
Returns or sets the orientation of the corner first reference element. The orientation specifies the corner center position. It is either the same of the inverse orientation than those of the cross product: Normal(Support) ^ Tangent(FirstElem)
Legal values: 1 if the orientation of the corner first reference element is the same than the cross product: Normal(Support) ^ Tangent(FirstElem), and -1 if it is the inverse.
Example:
This example retrieves the orientation of first reference element of the hybShpCorner hybrid shape corner in firstOrient.
 Dim firstOrient As long
 firstOrient = hybShpCorner.FirstOrientation
 
o Property FirstTangentOrientation() As
Returns or sets the tangent orientation of the corner first reference element. compared to the corner itself
Example:
This example retrieves the tangent orientation of first reference element of the hybShpCorner hybrid shape corner in firstOrient.
 Dim firstOrient As long
 firstOrient = hybShpCorner.FirstTangentOrientation
 
o Property OnVertex() As
Returns or sets the On Vertex mode off/on.
Example:
This example retrieves the OnVertex the hybShpCorner hybrid shape corner in OnVertex.
 Dim bOnVertex As boolean
 bOnVertex = hybShpCorner.OnVertex
 
o Property Radius() As (Read Only)
Returns the corner radius.
Example:
This example retrieves the radius of the hybShpCorner hybrid shape corner in radius.
 Dim radius As CATIALength
 radius = hybShpCorner.Radius
 
o Property SecondElem() As
Returns or sets the corner second reference element.
Legal values: This is always a curve.
Sub-element(s) supported (see
Boundary object): TriDimFeatEdge, BiDimFeatEdge or Vertex.
Example:
This example retrieves the second reference element of the hybShpCorner hybrid shape corner in secondElt.
 Dim secondElt As CATIAReference
 secondElt = hybShpCorner.SecondElem
 
o Property SecondOrientation() As
Returns or sets the orientation of the corner second reference element. The orientation specifies the corner center position. It is either the same of the inverse orientation than those of the cross product: Normal(Support) ^ Tangent(SecondElem)
Legal values: 1 if the orientation of the corner second reference element is the same than the cross product: Normal(Support) ^ Tangent(SecondElem), and -1 if it is the inverse.
Example:
This example sets the orientation of second reference element of the hybShpCorner hybrid shape corner to the inverse of the cross porduct Normal(Support) ^ Tangent(SecondElem).
 hybShpCorner.SecondOrientation = -1
 
o Property SecondTangentOrientation() As
Returns or sets the tangent orientation of the corner second reference element. compared to the corner itself
Example:
This example retrieves the tangent orientation of second reference element of the hybShpCorner hybrid shape corner in secondOrient.
 Dim secondOrient As long
 firstOrient = hybShpCorner.SecondTangentOrientation
 
o Property Support() As
Returns or sets the corner support.
Legal values: This can be a plane or a surface.
Sub-element(s) supported (see
Boundary object): Face.
Example:
This example sets the support of the hybShpCorner hybrid shape corner as the exisiting surgace supportSurf.
 hybShpCorner.Support = supportSurf
 
o Property TrimMode() As
Returns or sets whether the corner reference curves are or should be trimmed.
Legal values: 1 if the corner reference curves are or should be trimmed, 0 if the corner reference curves are not or should not be trimmed, 2 if only the first corner reference curve is or should be trimmed, 3 if only the second corner reference curve is or should be trimmed,
Example:
This example sets that the corner reference curves of the hybShpCorner hybrid shape corner should be trimmed.
 hybShpCorner.TrimMode = 1
 
o Property Trim() As
Returns or sets whether the corner reference curves are or should be trimmed.
Legal values: True if the corner reference curves are or should be trimmed, and False otherwise.
Example:
This example sets that the corner reference curves of the hybShpCorner hybrid shape corner should be trimmed.
 hybShpCorner.Trim = True
 

Methods


o Sub InvertFirstOrientation()
Inverts the first reference element orientation used to compute the corner.
Example:
This example inverts the first corner reference element orientation of the hybShpCorner.
 hybShpCorner.InvertFirstOrientation
 
o Sub InvertSecondOrientation()
Inverts the second reference element orientation used to compute the corner.
Example:
This example inverts the second corner reference element orientation of the hybShpCorner.
 hybShpCorner.InvertSecondOrientation
 

Copyright © 2003, Dassault Systèmes. All rights reserved.