API Reference > OdGe Classes > OdGeCubicSplineCurve2d Class > OdGeCubicSplineCurve2d Constructor > OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d Constructor ()
OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d Constructor ()
Syntax
C++
OdGeCubicSplineCurve2d(); OdGeCubicSplineCurve2d(const OdGeCubicSplineCurve2d& source); OdGeCubicSplineCurve2d(const OdGePoint2dArray& fitPnts, const OdGeTol& tol = OdGeContext::gTol); OdGeCubicSplineCurve2d(const OdGePoint2dArray& fitPnts, const OdGeVector2d& startDeriv, const OdGeVector2d& endDeriv, const OdGeTol& tol = OdGeContext::gTol); OdGeCubicSplineCurve2d(const OdGeCurve2d& curve, double tol = OdGeContext::gTol.equalPoint()); OdGeCubicSplineCurve2d(const OdGeKnotVector& knots, const OdGePoint2dArray& fitPnts, const OdGeVector2dArray& firstDerivs, bool isPeriodic = false);
Parameters 
Description 
const OdGeCubicSplineCurve2d& source 
[in] Object to be cloned. 
const OdGePoint2dArray& fitPnts 
[in] An array of 2D fit points.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance.  
const OdGeVector2d& startDeriv 
[in] Starting derivative of the cubic spline curve.  
const OdGeVector2d& endDeriv 
[in] Ending derivative of this cubic spline curve.  
const OdGeCurve2d& curve 
[in] A curve to be approximated by this cubic spline curve.  
const OdGeKnotVector& knots 
[in] Knot vector.  
const OdGeVector2dArray& firstDerivs 
[in] Array of first derivatives at the fit points.  
bool isPeriodic = false 
[in] True if and only if the cubic spline curve is to be periodic (closed).  

OdGeCubicCplineCurve2d(fitPnts, tol) constructs a periodic (closed) cubic spline curve. The last fit point must equal the first. 

Currently not implemented.

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