AcGeNurbCurve3d::AcGeNurbCurve3d

C++
AcGeNurbCurve3d(
    int degree, 
    const AcGeKnotVector& knots, 
    const AcGePoint3dArray& cntrlPnts, 
    Adesk::Boolean isPeriodic = Adesk::kFalse
);
Parameters
Parameters 
Description 
degree 
Input degree of spline 
knots 
Input array of knot values, partitioning spline's domain into polynomial pieces 
cntrlPnts 
Input array of 3D control points 
isPeriodic 
Input flag indicating if spline is a closed curve 
Description

If isPeriodic = Adesk::kFalse then the length of knot vector must be greater than the length of the control array by degree+1. 

If isPeriodic = Adesk::kTrue then one of the following must be true:

  • length of the knot vector must be greater than length of the control array by 1. The first and the last control points must not be identical.
  • knot vector and control array must have same length, and the first and the last control points must be identical.
Links