API Reference > OdGe Classes > OdGeNurbCurve3d Class > OdGeNurbCurve3d Constructor > OdGeNurbCurve3d::OdGeNurbCurve3d Constructor (int, OdGePolyline3d&, bool)
OdGeNurbCurve3d::OdGeNurbCurve3d Constructor (int, OdGePolyline3d&, bool)
Syntax
C++
OdGeNurbCurve3d(int degree, const OdGePolyline3d& fitPolyline, bool isPeriodic = false);
Parameters 
Description 
int degree 
[in] Degree of curve.  
const OdGePolyline3d& fitPolyline 
[in] Input polyline fit points of which are interpolated by the curve.  
bool isPeriodic = false 
[in] True if and only if the curve is periodic. 

Constructor for the OdGeNurbCurve3d class. 

 

Constructs a 3D spline by a degree and fit points provided by a polyline. If isPeriodic is true then the first and the last fitPoints from fitPolyLine must be identical. 

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

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