Share

AcGeNurbCurve2d::AcGeNurbCurve2d

C++

GE_DLLEXPIMPORT AcGeNurbCurve2d(
    int degree, 
    const AcGeKnotVector& knots, 
    const AcGePoint2dArray& cntrlPnts, 
    Adesk::Boolean isPeriodic = Adesk::kFalse
);

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.

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 2D control points
isPeriodic Returns flag indicating if spline is a closed curve

Links

AcGeNurbCurve2d

Was this information helpful?