API Reference > OdDb Classes > OdDbRegion Class > OdDbRegion Methods > OdDbRegion::createFromCurves Method
OdDbRegion::createFromCurves Method
Syntax
C++
static OdResult createFromCurves(const OdRxObjectPtrArray& curveSegments, OdRxObjectPtrArray& regions);
Parameters 
Description 
const OdRxObjectPtrArray& curveSegments 
[in] Array of curve segments. Each curve segment must be one of the following: OdDb3dPolyline, OdDbArc, OdDbCircle, OdDbEllipse, OdDbLine, OdDbPolyline, or OdDbSpline.  
OdRxObjectPtrArray& regions 
[out] Receives an array of pointers to the regions.
 

Returns eOk if successful, or an appropriate error code if not. If there are curveSegments with self-intersections, returns eInvalidInput

Creates OdDbRegion entities from the closed loops defined by the specified curve segments. 

 

The newly created regions are non-database residents. It is up to the caller to either add them to an OdDbDatabase or to delete them.

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