Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbRegion::createFromCurves Method
Syntax
C++
static OdResult createFromCurves(const OdRxObjectPtrArray& curveSegments, OdRxObjectPtrArray& regions);

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

 

Parameters
Description
curveSegments
[in] Array of curve segments. Each curve segment must be one of the following: OdDb3dPolyline, OdDbArc, OdDbCircle, OdDbEllipse, OdDbLine, OdDbPolyline or OdDbSpline.
regions
[out] Receives an array of pointers to the regions.

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

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-2022. Open Design Alliance All rights reserved.