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 the OdGeNurbCurve2d class. 

 

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

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