API Reference > OdGe Classes > OdGeNurbSurface Class > OdGeNurbSurface Methods > convertFrom Method > OdGeNurbSurface::convertFrom Method (OdGeSurface*, OdGeUvBox&, OdGeTol&, bool)
OdGeNurbSurface::convertFrom Method (OdGeSurface*, OdGeUvBox&, OdGeTol&, bool)
Syntax
C++
static OdGeNurbSurface* convertFrom(const OdGeSurface* source, const OdGeUvBox& domain, const OdGeTol& tol = OdGeContext::gTol, bool sameParametrization = false);
Parameters 
Description 
const OdGeSurface* source 
[in] Source surface to convert.  
const OdGeUvBox& domain 
[in] UV-range of source surface 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 surface to spline with given tolerance and parametrization settings. 

 

  • If source surface already is spline, a copy is returned.
  • If provided null-pointer to source surface or surface has no analytic representation, a null-pointer is returned
  • If input domain is not coincident to native domain, the intersection of input and native domain is used to build nurb

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