GetSplineEdgeData Method (IHatchBoundaryLoop) Send Feedback
See Also  Example
Index
Index of edge whose data to get (see Remarks)
Degree[out]
Degree of the spline
Rational[out]
True if the control points of the spline are weighted, false if not
Periodic[out]
True if periodic, false if non-periodic
KnotValuesDblArray[out]
Array of doubles of the knot values
ControlPointsDblArray[out]
Array of doubles of the control points
Gets the specified Spline data for the Hatch boundary.

Syntax

Visual Basic 
Sub GetSplineEdgeData( _
   ByVal Index As System.Integer, _
   ByRef Degree As System.Integer, _
   ByRef Rational As System.Boolean, _
   ByRef Periodic As System.Boolean, _
   ByRef KnotValuesDblArray As System.Object, _
   ByRef ControlPointsDblArray As System.Object _
) 
C# 
void GetSplineEdgeData( 
   System.int Index,
   out System.int Degree,
   out System.bool Rational,
   out System.bool Periodic,
   out System.object KnotValuesDblArray,
   out System.object ControlPointsDblArray
)
JavaScript 
GetSplineEdgeData( 
   Index : Number
) : {
   Degree : Number,
   Rational : Boolean,
   Periodic : Boolean,
   KnotValuesDblArray : Array,
   ControlPointsDblArray : Array
}
COM native C++ 
HRESULT GetSplineEdgeData( 
   LONG Index,
   LONG* Degree,
   VARIANT_BOOL* Rational,
   VARIANT_BOOL* Periodic,
   VARIANT* KnotValuesDblArray,
   VARIANT* ControlPointsDblArray
) 
C++ 
DSRESULT GetSplineEdgeData( 
   long Index,
   long* Degree,
   bool* Rational,
   bool* Periodic,
   dsDoubleArray* KnotValuesDblArray,
   dsDoubleArray* ControlPointsDblArray
) 

Parameters

Index
Index of edge whose data to get (see Remarks)
Degree[out]
Degree of the spline
Rational[out]
True if the control points of the spline are weighted, false if not
Periodic[out]
True if periodic, false if non-periodic
KnotValuesDblArray[out]
Array of doubles of the knot values
ControlPointsDblArray[out] or Return Value
Array of doubles of the control points

Example

Remarks

This method is valid only when IHatchBoundaryLoop::GetEdgeType is dsHatchEdgeType_e.dsHatchEdgeType_Spline.

Before calling this method, call IHatchBoundaryLoop::GetEdgesCount to determine a valid value for Index.

 

See Also

Availability

DraftSight V1R1.3