API Reference > OdGe Classes > OdGeNurbCurve2d Class > OdGeNurbCurve2d Methods > convertFrom Method > OdGeNurbCurve2d::convertFrom Method (OdGeCurve2d*, OdGeInterval&, OdGeTol&, bool)
OdGeNurbCurve2d::convertFrom Method (OdGeCurve2d*, OdGeInterval&, OdGeTol&, bool)
Syntax
C++
static OdGeNurbCurve2d* convertFrom(const OdGeCurve2d* source, const OdGeInterval& domain, const OdGeTol& tol = OdGeContext::gTol, bool sameParametrization = false);
Parameters 
Description 
const OdGeCurve2d* source 
[in] Source curve to convert.  
const OdGeInterval& domain 
[in] Interval of 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. 

 

  • 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.