API Reference > OdGe Classes > OdGeNurbCurve2d Class > OdGeNurbCurve2d Methods > convertFrom Method > OdGeNurbCurve2d::convertFrom Method (OdGeCurve2d*, OdGeTol&, bool)
OdGeNurbCurve2d::convertFrom Method (OdGeCurve2d*, OdGeTol&, bool)
Syntax
C++
static OdGeNurbCurve2d* convertFrom(const OdGeCurve2d* source, const OdGeTol& tol = OdGeContext::gTol, bool sameParametrization = false);
Parameters 
Description 
const OdGeCurve2d* source 
[in] Source curve to convert.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Accuracy of conversion.  
bool sameParametrization = false 
[in] Necessity of parametrization preserving during conversion. 

Raw pointer to the converted spline or a NULL pointer if conversion failed.

Converts a source curve to a spline with the given tolerance and parametrization settings in the native range of the source curve. 

 

  • If the source curve is already a spline, a copy is returned.
  • If a NULL-pointer to the source curve is provided or the curve has no
analytic representation, a NULL-pointer is returned.

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