ACDBCORE2D_PORT AcDbSpline( const AcGePoint3dArray& fitPoints, bool periodic, AcGe::KnotParameterization knotParam = AcGe::kUniform, int degree = 3, double fitTolerance = 0.0 );
|
Parameters |
Description |
|
const AcGePoint3dArray& fitPoints |
Array of points (in WCS coordinates) through which to fit the curve |
|
bool periodic |
whether to create a periodic spline fitting the array of points or not |
|
AcGe::KnotParameterization knotParam = AcGe::kUniform |
knot parameterization which define the knot values |
|
int degree = 3 |
Degree of the spline to be created (in the range 1 to 11) |
|
double fitTolerance = 0.0 |
Tolerance to which the spline should approximate fitPoints |
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 periodic specifies whether to create a periodic spline fitting the array of points or not. 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. kUniform 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.
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.
AcGe::KnotParametertization