API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > OdDbSurface::convertToRegion Method
OdDbSurface::convertToRegion Method
Syntax
C++
virtual OdResult convertToRegion(OdDbEntityPtrArray& regions);
Parameters 
Description 
OdDbEntityPtrArray& regions 
[out] Reference to an array of the OdDbRegion entities created from the face of the surface.
 

Returns eOk if successful, or an appropriate error code otherwise.

Creates region (OdDbRegion class) entities for each face of the surface. 

 

The surface must be planar. Regions created by the method are not included in the database, so the caller is responsible for managing memory of the created OdDbRegion objects. 

This method is implemented only for Spatial modeler and returns eNotImplementedYet status for other modelers.

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