API Reference > OdGe Classes > OdGeCubicSplineCurve2d Class > OdGeCubicSplineCurve2d Constructor > OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d Constructor (OdGeKnotVector&, OdGePoint2dArray&, OdGeVector2dArray&, bool)
OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d Constructor (OdGeKnotVector&, OdGePoint2dArray&, OdGeVector2dArray&, bool)
Syntax
C++
OdGeCubicSplineCurve2d(const OdGeKnotVector& knots, const OdGePoint2dArray& fitPnts, const OdGeVector2dArray& firstDerivs, bool isPeriodic = false);
Parameters 
Description 
const OdGeKnotVector& knots 
[in] Knot vector.  
const OdGePoint2dArray& fitPnts 
[in] An array of 2D fit points.  
const OdGeVector2dArray& firstDerivs 
[in] Array of first derivatives at the fit points.  
bool isPeriodic = false 
[in] True if the cubic spline curve should be periodic (closed). 

Constructor for the OdGeCubicSplineCurve2d class. Constructs a cubic spline curve from the passed fit points, knots vector, array of first derivatives at the fit points and option that cubic spline curve should be closed. Currently not implemented. 

 

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