AcDbSpline::AcDbSpline(AcGePoint3dArray&, AcGe::KnotParameterization, int, double) Constructor   

C++
ACDBCORE2D_PORT AcDbSpline(
    const AcGePoint3dArray& fitPoints, 
    AcGe::KnotParameterization knotParam, 
    int degree = 3, 
    double fitTolerance = 0.0
);
Parameters
Parameters 
Description 
fitPoints 
Array of points (in WCS coordinates) through which to fit the curve  
knotParam 
knot parameterization which define the knot values 
degree 
Degree of the spline to be created (in the range 1 to 11)  
fitTolerance 
Tolerance to which the spline should approximate fitPoints  
Description

Creates a spline that attempts to fit a 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 degree may be in the range 1 to 11. The knotParam specifies the way that the knots are created. The different knot sequence has impact on the curve shape. AutoCAD provides three options : kChord, kSqrtChord and kUniform. kChord is the default value. 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.

Remarks

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. 

 

Links
See Also

AcGe::KnotParametertization