Hide Table of Contents
IGetSplinePtsSize Method (ICurve)

Gets the size of the array required by ICurve::IGetSplinePts.

.NET Syntax

Visual Basic (Declaration) 
Function IGetSplinePtsSize( _
   ByRef PropArray As System.Integer, _
   ByRef KnotsArray As System.Double, _
   ByRef CntrlPntCoordArray As System.Double _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ICurve
Dim PropArray As System.Integer
Dim KnotsArray As System.Double
Dim CntrlPntCoordArray As System.Double
Dim value As System.Integer
 
value = instance.IGetSplinePtsSize(PropArray, KnotsArray, CntrlPntCoordArray)
C# 
System.int IGetSplinePtsSize( 
   ref System.int PropArray,
   ref System.double KnotsArray,
   ref System.double CntrlPntCoordArray
)
C++/CLI 
System.int IGetSplinePtsSize( 
&   System.int% PropArray,
&   System.double% KnotsArray,
&   System.double% CntrlPntCoordArray
) 

Parameters

PropArray

Array that includes dimension, order, number of control points, and periodicity

KnotsArray

knot1, knot2, ..., knotn

CntrlPntCoordArray

controlpoint1[dimension], controlpoint2[dimension], ...,  controlpointn[dimension]

Return Value

Size of the data set returned by ICurve::IGetSplinePts

Example

Remarks

PropArray contains 4 integers:

  • Dimension
  • Order
  • Number of control points
  • Periodicity ( True or false )

KnotsArray is an array of doubles with (Number of control points + Order) elements.

The size of the CntrlPntCoordArray array is based on the curve dimension.

  • Dimension = 2 then each control point is an array of 2 doubles ( u, v )
  • Dimension = 3 then each control point is an array of 3 doubles ( x, y, z)
  • Dimension = 4 then each control point is an array of 4 doubles ( x, y, z, w ) where w = weight

Data passed into this method must satisfy the following requirements:

  • If the curve is periodic, it must not have any repeated knots.
  • If the curve is non-periodic, it must only have repeated knots at its ends.
  • The curve must be cubic or lower degree, non-rational and have continuous first and second derivatives.

NOTE: For a linear or quadratic curve to satisfy these continuity requirements, it
must consist of a single segment.

 

See Also



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   IGetSplinePtsSize Method (ICurve)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2018 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.