Share

AcDbSpline::AcDbSpline

C++

AcDbSpline(
    const AcGePoint3dArray& fitPoints, 
    const AcGeVector3d& startTangent, 
    const AcGeVector3d& endTangent, 
    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 will cause 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 uses the startTangent vector as the tangent at the first point of the spline and the endTangent vector as the tangent at the end point of the spline.

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
startTangent Specifies the tangent at the start of the curve
endTangent Specifies the tangent at the end of the curve
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?