All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

HybridShapeSpline (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---HybridShape
            |
            +---HybridShapeSpline
 


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

Use the CATIAHybridShapeFactory to create a HybridShapeAffinity object.

See also:
HybridShapeFactory

Method Index

AddPoint
Add a new point .
AddPointWithConstraintExplicit
Add a new point with explicit tangency and curvature.
AddPointWithConstraintFromCurve
Add a new point with tangency/curvature from a curve.
GetClosure
Gets whether the curve is closed.
GetConstraintType
Returns the ControlPoint type at the given position.
GetCurvatureRadius
Returns the curvature radius value for each point of the spline.
GetDirectionInversion
Gets the orientation of the tangent direction .
GetNbControlPoint
Returns the number of control points.
GetPoint
Returns the Point at the given position.
GetPointConstraintExplicit
Returns the Constraint of the point at iPos.
GetPointConstraintFromCurve
Returns the Constraint of the point at iPos.
GetPointPosition
Returns the position of a given point.
GetSplineType
Gets the spline type.
GetSupport
Gets the support surface.
GetTangentNorm
Returns the tension for each point of the spline.
InvertDirection
Inverts the orientation of the tangent direction .
RemoveAll
Removes all elements in the list of points.
RemoveControlPoint
Removes a point at the given position.
RemoveCurvatureRadiusDirection
Removes Curvature Radius Direction for the given point of the spline.
RemoveCurvatureRadiusValue
Removes Curvature Radius Value for the given point of the spline.
RemoveSupport
Removes the support surface.
RemoveTangentDirection
Removes tangent Direction for the given point of the spline.
RemoveTension
Removes the Tension for the given point of the spline.
ReplacePointAtPosition
Replaces a point in the list at the given position.
SetClosing
Activates the closing option of the spline.
SetPointAfter
Sets the Point After a given position.
SetPointBefore
Sets the Point Before a given position.
SetPointConstraintExplicit
Sets the Constraint of the point at iPos.
SetPointConstraintFromCurve
Sets the Constraint of the point at iPos.
SetSplineType
Sets the spline type.
SetSupport
Sets the spline support surface.

Methods


o Sub AddPoint(CATIAReference ipIAPoint)
Add a new point .
Parameters:
iPoint
Point element.
o Sub AddPointWithConstraintExplicit(CATIAReference ipIAPoint,
CATIAHybridShapeDirection ipIADirTangency,
double iTangencyNorm,
long iInverseTangency,
CATIAHybridShapeDirection ipIADirCurvature,
double iCurvatureRadius)
Add a new point with explicit tangency and curvature.
Parameters:
ipIAPoint
Point element.
ipIADirTangency
Tangent direction.
iTangencyNorm
Tension.
iInverseTangency
Flag to reverse tangent direction (value can be 1 or -1).
ipIADirCurvature
Curvature direction.
iCurvatureRadius
Curvature radius value.
o Sub AddPointWithConstraintFromCurve(CATIAReference ipIAPoint,
CATIAReference ipIACurveCst,
double iTangencyNorm,
long iInvertValue,
long iCrvCstType)
Add a new point with tangency/curvature from a curve.
Parameters:
ipIAPoint
Point element.
ipIACurveCst
Curvature direction.
iTangencyNorm
tension factor for tangency.
iInvertValue
Orientation for tangent
iCrvCstType
Continuity type for Curve Constraint (1=Tangency , 2-= Curvature).
o Func GetClosure() As long
Gets whether the curve is closed.
Parameters:
oClosed
Closing flag
1
for a closed curve
0
for an open curve
o Func GetConstraintType(long iPos) As long
Returns the ControlPoint type at the given position.
Parameters:
iPos
The poistion of the point to retrieve
oCstType
Type of Control point (CstType=0 : not defined / CstType=1 : Explicit / CstType=2 : FromCurve)
o Func GetCurvatureRadius(long iPos) As CATIALength
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.
oRadius
The curvature radius value at this point
o Func GetDirectionInversion(long iPos) As long
Gets the orientation of the tangent direction .
Parameters:
oInvertFlag
invert flag = 1 No Inversion = -1 Invert
iPos
Position of point in spline First Position is 1 Position 0 return E_FAIL
o Func GetNbControlPoint() As long
Returns the number of control points.
Parameters:
oNbCtrPt
The number of control points.
o Func GetPoint(long iPos) As CATIAReference
Returns the Point at the given position.
Parameters:
iPos
The poistion of the point to retrieve
opIAPoint
Type of Control point (TypeCtrPoint =1 : Explicit / TypeCtrPoint =2 : FromCurve)
o Sub GetPointConstraintExplicit(long iPos,
CATIAHybridShapeDirection opIADirTangency,
double oTangencyNorm,
long oInverseTangency,
CATIAHybridShapeDirection opIADirCurvature,
double 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
opIADirTangency
Tangent direction.
oTangencyNorm
Tension.
oInverseTangency
Flag to reverse tangent direction (value can be 1 or -1).
opIADirCurvature
Curvature direction.
oCurvatureRadius
Curvature radius value.
o Sub GetPointConstraintFromCurve(long iPos,
CATIAReference opIACurveCst,
double oTangencyNorm,
long oInvertValue,
long 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
opIACurveCst
Curvature direction.
oTangencyNorm
tension factor for tangency.
oInvertValue
Orientation for tangent
oCrvCstType
Continuity type for Curve Constraint (1=Tangency , 2-= Curvature).
o Func GetPointPosition(CATIAReference ipIAPoint) As long
Returns the position of a given point.
Parameters:
ipIAPoint
Point
oPos
The position of the point (=0 Point Not in Spline)
o Func GetSplineType() As long
Gets the spline type.
Parameters:
oType
= 0 : Cubic Type Spline. = 1 : WilsonFowler Type Spline.
o Func GetSupport() As CATIAReference
Gets the support surface.
Parameters:
oSupport
Supporting surface for spline (if exist)
o Func GetTangentNorm(long iPos) As CATIARealParam
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.
oTension
The tension at this point
o Sub InvertDirection(long iPos)
Inverts the orientation of the tangent direction .
Parameters:
iPos
Position of point in spline First Position is 1 Position 0 return E_FAIL
o Sub RemoveAll()
Removes all elements in the list of points.
o Sub RemoveControlPoint(long iPos)
Removes a point at the given position.
Parameters:
iPos
The position of the point to remove
o Sub RemoveCurvatureRadiusDirection(long 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
o Sub RemoveCurvatureRadiusValue(long 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
o Sub RemoveSupport()
Removes the support surface.
o Sub RemoveTangentDirection(long 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
o Sub RemoveTension(long 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
o Sub ReplacePointAtPosition(long iPos,
CATIAReference iPoint)
Replaces a point in the list at the given position.
Parameters:
oPoint
Point
iPos
Replace position
o Sub SetClosing(long iClosingType)
Activates the closing option of the spline.
Parameters:
iClosingType
The spline closing option
o Sub SetPointAfter(long iPos,
CATIAReference ipIAPoint)
Sets the Point After a given position.
Parameters:
iPos
The position reference (0 < position < Nbpt)
ipIAPoint
Point
o Sub SetPointBefore(long iPos,
CATIAReference ipIAPoint)
Sets the Point Before a given position.
Parameters:
iPos
The position reference (1 < position < Nbpt+1)
ipIAPoint
Point
o Sub SetPointConstraintExplicit(long iPos,
CATIAHybridShapeDirection ipIADirTangency,
double iTangencyNorm,
long iInverseTangency,
CATIAHybridShapeDirection ipIADirCurvature,
double 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
ipIADirTangency
Tangent direction.
iTangencyNorm
Tension.
iInverseTangency
Flag to reverse tangent direction (value can be 1 or -1).
ipIADirCurvature
Curvature direction.
iCurvatureRadius
Curvature radius value.
o Sub SetPointConstraintFromCurve(long iPos,
CATIAReference ipIACurveCst,
double iTangencyNorm,
long iInvertValue,
long 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
ipIACurveCst
Curvature direction.
iTangencyNorm
tension factor for tangency.
iInvertValue
Orientation for tangent
iCrvCstType
Continuity type for Curve Constraint (1=Tangency , 2-= Curvature).
o Sub SetSplineType(long iSplineType)
Sets the spline type.
Parameters:
iSplineType
The spline type
Legal values: Cubic spline (0) or WilsonFowler (1)
o Sub SetSupport(CATIAReference 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
Boundary object): Face.

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