CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbHatch.h File Reference
#include "TD_PackPush.h"
#include "DbEntity.h"
#include "Ge/GePoint2dArray.h"
#include "IntArray.h"
#include "CmColorArray.h"
#include "HatchPattern.h"
#include "DwgDeclareMembers.h"
#include "DbRegion.h"
#include "UInt16Array.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

class  OdDbHatch
 

Macros

#define HATCH_PATTERN_NAME_LENGTH   32
 

Typedefs

typedef OdArray< OdGeCurve2d * > EdgeArray
 
typedef OdSmartPtr< OdDbHatchOdDbHatchPtr
 

Functions

DBENT_EXPORT OdResult oddbAppendLoopFromPickPoint (OdDbDatabase *pDb, OdDbHatch *pHatch, const OdGePoint3d &pickPoint, const OdGePlane &hatchPlane, const bool useInnerRegions)
 
DBENT_EXPORT EdgeArray oddbCreateEdgesFromEntity (const OdDbEntity *pEnt, const OdGePlane &hatchPlane, const bool bLeadToXAxis=false)
 

Macro Definition Documentation

◆ HATCH_PATTERN_NAME_LENGTH

#define HATCH_PATTERN_NAME_LENGTH   32

Definition at line 39 of file DbHatch.h.

Typedef Documentation

◆ EdgeArray

This template class is a specialization of the OdArray class for OdGeCurve2d object pointers.

Definition at line 45 of file DbHatch.h.

◆ OdDbHatchPtr

This template class is a specialization of the OdSmartPtr class for OdDbHatch object pointers.

Definition at line 1380 of file DbHatch.h.

Function Documentation

◆ oddbAppendLoopFromPickPoint()

DBENT_EXPORT OdResult oddbAppendLoopFromPickPoint ( OdDbDatabase * pDb,
OdDbHatch * pHatch,
const OdGePoint3d & pickPoint,
const OdGePlane & hatchPlane,
const bool useInnerRegions )

Adds loops to an OdDbHatch with an entity in the visible area of the viewport around the pick point.

Parameters
pDb[in] the database from which the entities will be obtained to build a closed loops.
pHatch[in] the OdDbHatch to append new created loops from pick point.
pickPoint[in] the point around which the nearest contour will be searched.
hatchPlane[in] the creation of a contour will be only between those entities that place in the hatchPlane plane.
useInnerRegions[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".
Returns
eOk if successful. eNotCurrentDatabase if the pHatch has a database and this database differ from pDb. eInvalidInput if the pDb or pHatch is null. eGeneralModelingFailure if can't create a loops from entities.

◆ oddbCreateEdgesFromEntity()

DBENT_EXPORT EdgeArray oddbCreateEdgesFromEntity ( const OdDbEntity * pEnt,
const OdGePlane & hatchPlane,
const bool bLeadToXAxis = false )