# Splines

Some common questions and answers about SOLIDWORKS and splines are presented in this help topic.

What are the different types of splines used in SOLIDWORKS?

Any curve in SOLIDWORKS that is not an analytic curve, such as a line, arc, conic, or a composite curve, is represented as a b-spline. SOLIDWORKS uses standard b-splines as defined in computer-aided design literature.

What are the mathematical names for b-spline and p-spline? What is the difference between ICurve::GetPCurveParams2 and ICurve::GetBCurveParams5? Do these methods return parameters for two different kinds of splines, or do they return parameters formatted in two different ways for a single spline type?

Names such as p-spline, or p-curve, are used for b-splines in a particular context. If you are unsure of the context, then you might find the names confusing. For example, p-curves, as in IModeler::CreatePCurve, are b-splines that lie on a surface and are created from b-splines in the parameter space of the surface.

Any b-spline is a piecewise polynomial curve, and a p-spline is a b-spline represented as the polynomial coefficients that define the polynomials in each segment of the b-spline.

• ICurve::GetBCurveParams5 gets the control point/knot standard b-spline representation for the input curve.

• ICurve::GetPCurveParams gets the polynomial coefficients for the segments of a b-spline for the input curve.

• ICurve::GetPCurveParams2 is a hybrid of ICurve::GetBCurveParams5 and ICurve::GetPCurveParms. You can use either the control point/knot representation, which it returns in the SplineParamData object, or the polynomial coefficient representation for the individual segments.

When can you edit the control points of a b-spline?

You can edit control points when creating a b-spline; however, you currently cannot replace control points of an existing b-spline.

What kind of spline is returned by ISketchManager::CreateSpline2, IModelDoc2::SketchSpline, and IFeatureManager::MakeStyledCurves2?

All three methods create b-splines.

What b-spline points for the curve does ICurve::GetSplinePts return?

ICurve::GetSplinePts gets a spline's through/interpolation points, i.e., the end points of its individual spline segments, as opposed to its representation by knots and control points.

Provide feedback on this topic

* Required

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