API Reference > OdGe Classes > OdGeNurbCurve2d Class > OdGeNurbCurve2d Constructor > OdGeNurbCurve2d::OdGeNurbCurve2d Constructor (OdGePoint2dArray&, OdGeVector2dArray&, OdGeTol&, bool)
OdGeNurbCurve2d::OdGeNurbCurve2d Constructor (OdGePoint2dArray&, OdGeVector2dArray&, OdGeTol&, bool)
Syntax
C++
OdGeNurbCurve2d(const OdGePoint2dArray& fitPoints, const OdGeVector2dArray& fitTangents, const OdGeTol& fitTolerance = OdGeContext::gTol, bool isPeriodic = false);
Parameters 
Description 
const OdGePoint2dArray& fitPoints 
[in] Array of 2D points through which to fit the curve.  
const OdGeVector2dArray& fitTangents 
[in] Input vectors interpolating the curve's derivatives at fitPoints.  
const OdGeTol& fitTolerance = OdGeContext::gTol 
[in] Input maximal deviation of the curve from the fitPoints.  
bool isPeriodic = false 
[in] true if and only if the curve is periodic (closed curve). 

Constructor for objects of the OdGeNurbCurve2d class. 

 

Constructs a 2D polynomial curve interpolating a given array if 2D points within the given tolerance. If isPeriodic is true, then the first and the last fitPoints must be identical. The same must be true for fitTangents.

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