Role: To access the data of the hybrid shape spline feature object. This data includes:
- The support surface
- The control points
- The tension at each control point
- The curvature radius at each control point
Use the CATIAHybridShapeFactory to create a HybridShapeAffinity object.
- See also:
Methods
- Sub AddPoint( ipIAPoint)
-
Add a new point .
- Parameters:
-
- iPoint
- Point element. dd>
- Sub AddPointWithConstraintExplicit( ipIAPoint, ipIADirTangency, iTangencyNorm, iInverseTangency, ipIADirCurvature, iCurvatureRadius)
-
Add a new point with explicit tangency and curvature.
- Parameters:
-
- ipIAPoint
- Point element. dd>
- ipIADirTangency
- Tangent direction. dd>
- iTangencyNorm
- Tension. dd>
- iInverseTangency
- Flag to reverse tangent direction (value can be 1 or -1). dd>
- ipIADirCurvature
- Curvature direction. dd>
- iCurvatureRadius
- Curvature radius value. dd>
- Sub AddPointWithConstraintFromCurve( ipIAPoint, ipIACurveCst, iTangencyNorm, iInvertValue, iCrvCstType)
-
Add a new point with tangency/curvature from a curve.
- Parameters:
-
- ipIAPoint
- Point element. dd>
- ipIACurveCst
- Curvature direction. dd>
- iTangencyNorm
- tension factor for tangency. dd>
- iInvertValue
- Orientation for tangent dd>
- iCrvCstType
- Continuity type for Curve Constraint (1=Tangency , 2-= Curvature). dd>
- Func GetClosure() As
-
Gets whether the curve is closed.
- Parameters:
-
- oClosed
- Closing flag
- 1
- for a closed curve
- 0
- for an open curve
- Func GetConstraintType( iPos) As
-
Returns the ControlPoint type at the given position.
- Parameters:
-
- iPos
- The poistion of the point to retrieve dd>
- oCstType
- Type of Control point (CstType=0 : not defined / CstType=1 : Explicit / CstType=2 : FromCurve) dd>
- Func GetCurvatureRadius( iPos) As
-
Returns the curvature radius value for each point of the spline.
- Parameters:
-
- iPos
- The position of the point in the spline.
Legal values: first position is 1. The position cannot be 0. dd> - oRadius
- The curvature radius value at this point dd>
- Func GetDirectionInversion( iPos) As
-
Gets the orientation of the tangent direction .
- Parameters:
-
- oInvertFlag
- invert flag = 1 No Inversion = -1 Invert dd>
- iPos
- Position of point in spline First Position is 1 Position 0 return E_FAIL dd>
- Func GetNbControlPoint() As
-
Returns the number of control points.
- Parameters:
-
- oNbCtrPt
- The number of control points. dd>
- Func GetPoint( iPos) As
-
Returns the Point at the given position.
- Parameters:
-
- iPos
- The poistion of the point to retrieve dd>
- opIAPoint
- Type of Control point (TypeCtrPoint =1 : Explicit / TypeCtrPoint =2 : FromCurve) dd>
- Sub GetPointConstraintExplicit( iPos, opIADirTangency, oTangencyNorm, oInverseTangency, opIADirCurvature, oCurvatureRadius)
-
Returns the Constraint of the point at iPos.
Available for Explicit Point Constraint type (CstType =1 from GetContraintType)- Parameters:
-
- iPos
- The position of the point to retrieve dd>
- opIADirTangency
- Tangent direction. dd>
- oTangencyNorm
- Tension. dd>
- oInverseTangency
- Flag to reverse tangent direction (value can be 1 or -1). dd>
- opIADirCurvature
- Curvature direction. dd>
- oCurvatureRadius
- Curvature radius value. dd>
- Sub GetPointConstraintFromCurve( iPos, opIACurveCst, oTangencyNorm, oInvertValue, oCrvCstType)
-
Returns the Constraint of the point at iPos.
Available for FromCurve Point Constraint type (CstType =2 from GetContraintType)- Parameters:
-
- iPos
- The position of the point to retrieve dd>
- opIACurveCst
- Curvature direction. dd>
- oTangencyNorm
- tension factor for tangency. dd>
- oInvertValue
- Orientation for tangent dd>
- oCrvCstType
- Continuity type for Curve Constraint (1=Tangency , 2-= Curvature). dd>
- Func GetPointPosition( ipIAPoint) As
-
Returns the position of a given point.
- Parameters:
-
- ipIAPoint
- Point dd>
- oPos
- The position of the point (=0 Point Not in Spline) dd>
- Func GetSplineType() As
-
Gets the spline type.
- Parameters:
-
- oType
- = 0 : Cubic Type Spline. = 1 : WilsonFowler Type Spline. dd>
- Func GetSupport() As
-
Gets the support surface.
- Parameters:
-
- oSupport
- Supporting surface for spline (if exist) dd>
- Func GetTangentNorm( iPos) As
-
Returns the tension for each point of the spline.
The tension is the tangent norm at the given point.- Parameters:
-
- iPos
- The position of the point in the spline.
Legal values: first position is 1. The position cannot be 0. dd> - oTension
- The tension at this point dd>
- Sub InvertDirection( iPos)
-
Inverts the orientation of the tangent direction .
- Parameters:
-
- iPos
- Position of point in spline First Position is 1 Position 0 return E_FAIL dd>
- Sub RemoveAll()
- Removes all elements in the list of points.
- Sub RemoveControlPoint( iPos)
-
Removes a point at the given position.
- Parameters:
-
- iPos
- The position of the point to remove dd>
- Sub RemoveCurvatureRadiusDirection( iPos)
-
Removes Curvature Radius Direction for the given point of the spline.
- Parameters:
-
- iPos
- Position of point in spline First Position is 1 Position 0 return E_FAIL dd>
- Sub RemoveCurvatureRadiusValue( iPos)
-
Removes Curvature Radius Value for the given point of the spline.
- Parameters:
-
- iPos
- Position of point in spline First Position is 1 Position 0 return E_FAIL dd>
- Sub RemoveSupport()
- Removes the support surface.
- Sub RemoveTangentDirection( iPos)
-
Removes tangent Direction for the given point of the spline.
- Parameters:
-
- iPos
- Position of point in spline First Position is 1 Position 0 return E_FAIL dd>
- Sub RemoveTension( iPos)
-
Removes the Tension for the given point of the spline.
- Parameters:
-
- iPos
- Position of point in spline First Position is 1 Position 0 return E_FAIL dd>
- Sub ReplacePointAtPosition( iPos, iPoint)
-
Replaces a point in the list at the given position.
- Parameters:
-
- oPoint
- Point dd>
- iPos
- Replace position dd>
- Sub SetClosing( iClosingType)
-
Activates the closing option of the spline.
- Parameters:
-
- iClosingType
- The spline closing option dd>
- Sub SetPointAfter( iPos, ipIAPoint)
-
Sets the Point After a given position.
- Parameters:
-
- iPos
- The position reference (0 < position < Nbpt) dd>
- ipIAPoint
- Point dd>
- Sub SetPointBefore( iPos, ipIAPoint)
-
Sets the Point Before a given position.
- Parameters:
-
- iPos
- The position reference (1 < position < Nbpt+1) dd>
- ipIAPoint
- Point dd>
- Sub SetPointConstraintExplicit( iPos, ipIADirTangency, iTangencyNorm, iInverseTangency, ipIADirCurvature, iCurvatureRadius)
-
Sets the Constraint of the point at iPos.
Available for Explicit Point Constraint type (CstType =1 from GetContraintType)- Parameters:
-
- iPos
- The position of the point to retrieve dd>
- ipIADirTangency
- Tangent direction. dd>
- iTangencyNorm
- Tension. dd>
- iInverseTangency
- Flag to reverse tangent direction (value can be 1 or -1). dd>
- ipIADirCurvature
- Curvature direction. dd>
- iCurvatureRadius
- Curvature radius value. dd>
- Sub SetPointConstraintFromCurve( iPos, ipIACurveCst, iTangencyNorm, iInvertValue, iCrvCstType)
-
Sets the Constraint of the point at iPos.
Available for From Curve Point Constraint type (CstType =2 from GetContraintType)- Parameters:
-
- iPos
- The position of the point to retrieve dd>
- ipIACurveCst
- Curvature direction. dd>
- iTangencyNorm
- tension factor for tangency. dd>
- iInvertValue
- Orientation for tangent dd>
- iCrvCstType
- Continuity type for Curve Constraint (1=Tangency , 2-= Curvature). dd>
- Sub SetSplineType( iSplineType)
-
Sets the spline type.
- Parameters:
-
- iSplineType
- The spline type
Legal values: Cubic spline (0) or WilsonFowler (1) dd>
- Sub SetSupport( iSupport)
-
Sets the spline support surface.
Have your "tangent direction" tangent to this support is recommended.- Parameters:
-
- iSupport
- The spline support surface.
Sub-element(s) supported (see object): . dd>