API Reference > OdDg Classes > OdDgBSplineCurve2d Class > OdDgBSplineCurve2d Methods > OdDgBSplineCurve2d::getNurbsData Method
OdDgBSplineCurve2d::getNurbsData Method
Syntax
C++
OdResult getNurbsData(OdUInt32& order, bool& rational, bool& closed, OdGePoint2dArray& controlPoints, OdGeKnotVector& knots, OdGeDoubleArray& weights) const;
Parameters 
Description 
OdUInt32& order 
[out] Receives the degree.  
bool& rational 
[out] Receives true if and only if this Spline entity is rational.  
bool& closed 
[out] Receives true if and only if this Spline entity is closed.  
OdGePoint2dArray& controlPoints 
[out] Receives an array of WCS control points.  
OdGeKnotVector& knots 
[out] Receives the knot vector.  
OdGeDoubleArray& weights 
[out] Receives an array of weights. 

Returns the NURBS data for this Spline entity.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.