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] Specify true for converting to a smooth surface, or false for converting to a faceted surface.  
bool optimize 
[in] Specify true for converting as an optimized surface, or false otherwise.  
OdDbSurfacePtr& pSurface 
[out] Pointer to the newly created OdDbSurface object. 
Value 
Description 
eNotImplementedYet 
The method is not implemented yet for the current modeler. 
eInvalidContext 
The mesh is empty. 
eInvalidInput 
The mesh has self-intersections or zero area faces. 
eOk 
The surface created successfully. 

Creates a new OdDbSurface object from this mesh. 

 

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

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