API Reference > OdGe Classes > OdGeNurbCurve2d Class > OdGeNurbCurve2d Methods > setFitData Method > OdGeNurbCurve2d::setFitData Method (int, OdGePoint2dArray&, OdGeTol&)
OdGeNurbCurve2d::setFitData Method (int, OdGePoint2dArray&, OdGeTol&)
Syntax
C++
OdGeNurbCurve2d& setFitData(int degree, const OdGePoint2dArray& fitPoints, const OdGeTol& fitTol = OdGeContext::gTol);
Parameters 
Description 
int degree 
[in] Degree of curve.  
const OdGePoint2dArray& fitPoints 
[in] Interpolation points.  
const OdGeTol& fitTol = OdGeContext::gTol 
[in] Geometric tolerance. 

Reference to this OdGeNurbCurve2d object.

Sets the fit data for this spline. 

 

Recomputes the spline from the input fit points and makes it of the specified degree. If fitTol is not 0, then the constructed spline may not pass through the fit points. But the maximum distance from any fit point to the constructed spline will be no greater than fitTol. 

High degree values make curve more flexible. For example degree 1 is used to define a polyline, degree 2 is used to define a nurb circle, etc. 

Currently not implemented.

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