Share

AcDbSpline::AcDbSpline

C++

AcDbSpline(
    const AcGePoint3dArray& fitPoints, 
    int order = 4, 
    double fitTolerance = 0.0
);

Description

This constructor has been deprecated and will be removed in a future release.

Creates a spline that attempts to fit an order degree curve to the array of points within the tolerance fitTolerance. A fitTolerance of 0 causes the curve to be interpolated precisely through all the points in the points array. The curve order may be in the range 2 to 26.

The curve end tangent directions are allowed to "float" to whatever value allows for the best curve fit of the points in the points array.

If any of the parameters are not acceptable, then the gelib object for the spline is not created and this constructor behaves like the default constructor (that is, the passed in values are not used and the data query methods on the spline return invalid values).

Use AcDbSpline::isNull() to determine if this constructor succeeded in initializing the spline to the values passed in. If isNull() returns Adesk::kFalse, then the initialization succeeded.

Parameters

Parameters Description
order Order of the spline to be created (in the range 2 to 26)
fitTolerance Tolerance to which the spline should approximate fitPoints
points Array of points (in WCS coordinates) through which to fit the curve

Links

AcDbSpline

Was this information helpful?