Share

AcDbSpline Constructor

Overload List

Method Description
AcDbSpline::AcDbSpline () Default constructor. Initializes to line segment between (0,0,0) and (1,0,0).
AcDbSpline::AcDbSpline (AcGePoint3d&, AcGeVector3d&, AcGeVector3d&, double, double, double) This constructor creates a spline initialized to be an elliptical arc.The center, unitNormal, and majorAxis are used to calculate the start point. majorAxis is the vector from the ellipse center point to the ellipse start point (or, half the major axis length). This vector is the zero angle for startAngle and endAngle. Positive angles are counterclockwise when looking down the normal vector (that is, right hand rule).radiusRatio must be in the range 1e-6 to 1.0.The dot product of normal with itself and majorAxis with itself must be greater than 1e-12.majorAxis must perpendicular to... more
AcDbSpline::AcDbSpline (AcGePoint3dArray&, AcGe::KnotParameterization, int, double) 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... more
AcDbSpline::AcDbSpline (AcGePoint3dArray&, AcGeVector3d&, AcGeVector3d&, AcGe::KnotParameterization, int, double) 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 will be 3. 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. The curve uses the startTangent vector as the tangent at the first point of the spline and the endTangent vector as the tangent... more
AcDbSpline::AcDbSpline (AcGePoint3dArray&, AcGeVector3d&, AcGeVector3d&, int, double) 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... more
AcDbSpline::AcDbSpline (AcGePoint3dArray&, bool, AcGe::KnotParameterization, int, double) 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... more
AcDbSpline::AcDbSpline (AcGePoint3dArray&, int, double) 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... more
AcDbSpline::AcDbSpline (int, Adesk::Boolean, Adesk::Boolean, Adesk::Boolean, AcGePoint3dArray&, AcGeDoubleArray&, AcGeDoubleArray&, double, double) Creates a spline using the parameters passed in.If the spline is to be rational, then isRational should be Adesk::kTrue.If the spline is to be closed (that is, a closed loop), then isClosed should be Adesk::kTrue.If the spline is to be periodic, then isPeriodic should be Adesk::kTrue. This parameter should only be set to Adesk::kTrue if the spline is closed. A periodic spline is a spline with period T such that the point at parameter value t + T is the same as the point at parameter t for any value of t.The weights array is only... more

Was this information helpful?