IGetPCurveParams Method (ICurve)

Converts a curve to a piecewise rational cubic polynomial form.

# .NET Syntax

Visual Basic (Declaration)
`Function IGetPCurveParams() As Double`
Visual Basic (Usage)
``````Dim instance As ICurve
Dim value As Double

value = instance.IGetPCurveParams()``````
C#
`double IGetPCurveParams()`
C++/CLI
`double IGetPCurveParams(); `

#### Return Value

• in-process, unmanaged C++: Pointer to an array of doubles describing the parameters of the curve (see Remarks)
• VBA, VB.NET, C#, and C++/CLI: Not supported

# Remarks

The curve is output as a series of segments.

This method returns the curve as a series of segments, each of which has this form:

(w0*a0 + w1*a1*t + w2*a2*t**2 + w3*a3*t**3)

p(t) = --------------------------------------------

(w0 + w1*t + w2*t**2 + w3*t**3)

Where w is the weight coefficient and a is the polynomial coefficient.

The coefficients returned are vectors of dimensions "dim". For example, if the curve is rational, then dimension = 4, and the coefficients returned for each segment are as follows:

(a0x,a0y,a0z,w0),(a1x,a1y,a1z,w1)...

However, if the curve is returned as non-rational, then dimension = 3, and its coefficients are:

(a0x,a0y,a0z),(a1x,a1y,a1z),...

Use ICurve::IGetPCurveParamsSize to determine the size of the array returned.

The size of the return value array is (3 + NumberKnots + NumberSegments x Order x Dimension).

The array is as follows:

[ packedDouble1, packedDouble2, packedDouble3, knot1, knot2,..., CoefficientsSegment1[Dimension], CoefficientsSegment2[Dimension],... ]

where:

packedDouble1: Integer pair containing Reserved and Order

packedDouble2: Integer pair containing NumberSegments and Periodicity

packedDouble3: Integer pair containing NumberKnots and Dimension

knot1

knot2

...

CoefficientsSegment1[Dimension]

CoefficientsSegment2[Dimension]

...

The coefficients for each segment start with the constant term and end with the term of highest degree (for example, ConstantX, ConstantY, ConstantZ, AX, AY, AZ, BX, BY, BZ). The total number of coefficients is:

(NumberSegments) x (Order) x (Dimension).

Provide feedback on this topic

* Required

 *Email: Subject: Feedback on Help Topics Page: IGetPCurveParams 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) 2012 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.