Hide Table of Contents
SetControlPoints Method (ISplineParamData)

Sets the coordinates of all of the control points of a spline.

.NET Syntax

Visual Basic (Declaration) 
Function SetControlPoints( _
   ByVal ControlPoints As System.Object _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ISplineParamData
Dim ControlPoints As System.Object
Dim value As System.Boolean
value = instance.SetControlPoints(ControlPoints)
System.bool SetControlPoints( 
   System.object ControlPoints
System.bool SetControlPoints( 
&   System.Object^ ControlPoints


One-dimensional array of doubles (see Remarks)

Return Value

True if successful, false if not



Control points determine the shape of a spline or curve. Starting with a set of control points, all other points of a spline can be calculated. A given point on the spline is calculated using the polynomial basis functions of its nearest control points. The knot vector determines which control point basis functions are in force for calculating each point along a curve.

The size of the ControlPoints array is based on the curve dimension:

  • if dimension = 2 then each control point has 2 doubles ( x, y )

  • if dimension = 3 then each control point has 3 doubles ( x, y, z )

  • if dimension = 4, and the curve is closed or periodic, then each control point has 4 doubles ( x, y, z, w ), where w = weight

  • if dimension = 4, and the curve is open or non-periodic, then each control point has 4 doubles ( w*x, w*y, w*z, w ), where w = weight

  • Size of ControlPoints array = control points count * dimension


See Also


SOLIDWORKS 2011 FCS, Revision Number 19.0

Provide feedback on this topic


* Required

Subject:   Feedback on Help Topics
Page:   SetControlPoints Method (ISplineParamData)

Print Topic

Select the scope of content to print:



 Never show this message again


