CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdEntityUtils.h File Reference
#include "DbEntity.h"

Go to the source code of this file.

Enumerations

enum class  BoundaryTypeEnum { eRegionBoundary = 0 , ePolylineBoundary = 1 }
 

Functions

DBENT_EXPORT OdResult boundary (OdDbDatabase *pDb, const OdGePoint3d &pickPoint, const BoundaryTypeEnum boundaryType, const bool bDetectIsland, OdDbEntityPtrArray &boundaryEntityOut, const OdGePlane *plane=0, const OdDbEntityPtrArray *selectionSet=0, const double dGap=0.)
 

Enumeration Type Documentation

◆ BoundaryTypeEnum

enum class BoundaryTypeEnum
strong

Defines types object creaion.

Enumerator
eRegionBoundary 

A OdDbRegion object.

ePolylineBoundary 

A OdDbPolyline object.

Definition at line 35 of file OdEntityUtils.h.

Function Documentation

◆ boundary()

DBENT_EXPORT OdResult boundary ( OdDbDatabase * pDb,
const OdGePoint3d & pickPoint,
const BoundaryTypeEnum boundaryType,
const bool bDetectIsland,
OdDbEntityPtrArray & boundaryEntityOut,
const OdGePlane * plane = 0,
const OdDbEntityPtrArray * selectionSet = 0,
const double dGap = 0. )

Creates OdDbRegions or a OdDbPolylines from enclosed areas.

Parameters
pDb[in] The database from which the entities will be obtained to build a boundary.
pickPoint[in] Point in the WCS.
boundaryType[in] Set 0 to create a region around a set of objects. Otherwise created closed polyline around a set of objects.
bDetectIsland[in] Set true if need create closed loops inner of loop created around pick point. False if create just one loop around pick point. E.g. "if this parameter is set then inner islands will be created inside the outer boundary defined by the pick point".
boundaryEntityOut[out] Created array of boundries
plane[in][optional] The plane on which the entity is located to form the boundary. If 0, then the plane will be taken as the UCS for the current viewport.
selectionSet[in][optional] Selections entity set to build boundary. If empty - will used entityes on current viewport extents.
dGap[in][optional] Specifies the size of possible gaps between entities when creating a boundary.
Returns
eOk if successful. eNoDatabase if database not specified. eSubSelectionSetEmpty if can't get set of entities from current view. eIllegalEntityType if can't create a OdDbPolylines from entities. eGeneralModelingFailure if can't create a boundary from entities. eInvalidView if can't access to active viewport.