API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > convertToSurface Method > OdDbSubDMesh::convertToSurface Method (bool, bool, OdDbSurfacePtr&)
OdDbSubDMesh::convertToSurface Method (bool, bool, OdDbSurfacePtr&)
Syntax
C++
OdResult convertToSurface(bool bConvertAsSmooth, bool optimize, OdDbSurfacePtr& pSurface) const;
Parameters 
Description 
bool bConvertAsSmooth 
[in] true for converting to smooth surface, false - for converting to faceted surface.  
bool optimize 
[in] true for converting as optimized surface, false - otherwise.  
OdDbSurfacePtr& pSurface 
[out] Pointer to the newly created OdDbSurface object. 
  • eNotImplementedYet - if method is not implemented yet for current modeler.
  • eInvalidContext - if the mesh is empty.
  • eInvalidInput - if mesh has self-intersections or zero area faces.
  • eOk - if surface created successfully.

Creates a new OdDbSurface object from this mesh. 

 

Mesh should not have self-intersections and zero area faces. Case when bConvertAsSmooth == true or optimize == true is not implemented yet.

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