API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::convertToSolid Method
OdDbSubDMesh::convertToSolid Method
Syntax
C++
OdResult convertToSolid(bool bConvertAsSmooth, bool optimize, OdDb3dSolidPtr& pSolid) 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.  
OdDb3dSolidPtr& pSolid 
[out] Pointer to the newly created OdDb3dSolid 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 or the mesh does not form a closed volume. 
eOk 
3dSolid created successfully. 

Creates a new OdDb3dSolid object from this mesh. 

 

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

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