API Reference > OdGe Classes > OdGeNurbCurve2d Class
OdGeNurbCurve2d Class
OdGeNurbCurve2dOdGeNurbCurve2dOdGeNurbCurve2dOdGeNurbCurve2d
Syntax
C++
class OdGeNurbCurve2d : public OdGeSplineEnt2d;

GeNurbCurve2d.h

This class represents non-uniform rational B-splines (NURBS) in 2D space. 

Corresponding C++ library: TD_Ge 

 

Working with NURBS curves

 
Name 
Description 
 
This is the overview for the OdGeNurbCurve2d constructor overload. 
 
Name 
Description 
 
Adds a control point at the specified knot.
 
 
Inserts the fit point at the specified index.
 
 
Adds new knot to the spline knot array.
 
 
This is the overview for the convertFrom method overload. 
 
Deletes a control point at the specified index.
 
 
Removes a fit point with the specified index.
 
 
Increases spline degree by the specified value and returns a reference to this spline object.
 
 
Returns the current evaluation mode. 
 
Retrieves all the data that define the spline.
 
 
This is the overview for the getFitData method overload. 
 
Gets the knot parametrization of the spline created with fit points.
 
 
Retrieves the fit point at the specified index.
 
 
Retrieves the starting and ending tangents if this spline was constructed with fit data.
 
 
Retrieves the fit tolerance that is used to construct this spline if this spline was constructed with fit points.
 
 
 
 
 
 
Trims the OdGeNurbCurve2d by the new start and end parameters.
 
 
Inserts new knot to the spline knot array.
 
 
Retrieves the intersection points as well as the parameters of this spline said points.
 
 
Joins the specified OdGeNurbCurve2d with this spline and returns a reference to the recomputed spline.
 
 
Makes the opened spline closed, and returns a reference to this spline. 
 
Makes periodic spline non-periodic. 
 
Makes closed spline open. 
 
Makes this spline periodic (if it is not). 
 
Makes this spline rational (if it is not).
 
 
Returns a number of fit points. 
 
Returns the number of weights in the spline. 
 
Purges the fit data defining this spline. 
 
set 
Sets the parameters for this spline according to the arguments.
 
 
Sets the evaluation mode.
 
 
This is the overview for the setFitData method overload. 
 
Sets the specified knot parameterization if the spline is created by fit points.
 
 
Sets the fit point at the specified index.
 
 
Sets the fit tangents for this spline.
 
 
Sets the fit tolerance that is used for interpolating fit points.
 
 
Sets the weight at the specified index.
 
 
Returns the weight at the specified index.
 
 
Name 
Description 
 
= 
Assignment operator for the OdGeNurbCurve2d object. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.