Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdModelerGeometryCreator::createRegionFromCurves Method
Syntax
C++
virtual OdResult createRegionFromCurves(const OdRxObjectPtrArray& curveSegments, OdArray<OdModelerGeometryPtr> & pRegions) = 0;

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

 

Parameters
Description
curveSegments
[in] Array of curve segments.
pRegions
[out] Receives an array of pointers to the regions.

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

Each curve segment must be one of the following 

untitled table OdDb3dPolyline OdDbArc OdDbCircle OdDbEllipse OdDbLine OdDbPolyline OdDbSpline 

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

 

  • All curves must be in the same plane.
  • The endpoint of each curve must be equal to the start point of the next curve
  • The endpoint of the last curve must be equal to the start point of the first curve.
Copyright © 2002-2022. Open Design Alliance All rights reserved.