Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeNurbCurve3d::setFitData Method (int, const OdGePoint3dArray&, const OdGeTol&)
Syntax
C++
OdGeNurbCurve3d& setFitData(int degree, const OdGePoint3dArray& fitPoints, const OdGeTol& fitTol = OdGeContext::gTol);

Sets the fit data for this spline. 

 

Parameters
Description
degree
[in] Degree of curve.
fitPoints
[in] Interpolation points.
fitTol
[in] Geometric tolerance.

Reference to this OdGeNurbCurve3d object.

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.

Copyright © 2002-2022. Open Design Alliance All rights reserved.