Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbSubDMesh::convertToSurface Method (bool, bool, OdDbSurfacePtr&)
Syntax
C++
OdResult convertToSurface(bool bConvertAsSmooth, bool optimize, OdDbSurfacePtr& pSurface) const;

Creates a new OdDbSurface 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.
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.

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

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