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. 

Returns raw pointer to converted spline or null pointer if conversion failed.

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

 

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

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