Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbSubDMesh::convertToSolid Method
Syntax
C++
OdResult convertToSolid(bool bConvertAsSmooth, bool optimize, OdDb3dSolidPtr& pSolid) const;

Creates a new OdDb3dSolid object from this mesh. 

 

Parameters
Description
bConvertAsSmooth
[in] Specify true for converting to a smooth surface, or false for converting to a faceted surface.
optimize
[in] Specify true for converting as an optimized surface, or false otherwise.
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.

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

Copyright © 2002-2022. Open Design Alliance All rights reserved.