DG Kernel Documentation


Skip Navigation Links. Skip Navigation LinksHome Page > API Reference > General Geometry > Oriented Objects > IBox_DG

IBox_DG Interface

Init
GetRange
GetRange1
SetRange
SetRange1
SetAll
GetLocation
SetLocation
GetLimit
IsEmpty
SetEmpty
IsIn
IsIn1
GetPointLocation
Include
Include1
Expand
Translate
GetCentre
GetCorner
GetPoint
GetRatios
GetSize
GetMaxSize
GetDiagonalLength
GetVolume
GetPlane
GetDist
GetDistBox
GetLineIntersection
Copy

A 3D box arbitrary located and oriented in 3D. By default its location is the global frame (identity), in which case global and local coordinates are the same and the object can be used as an axis-aligned box. A standalone box can be created for some calculations using IObjectGenerator_DG:

IModel_DG > IObjectGenerator_DG > Create("Box_DG") > IUnknown > IBox_DG


void Init(double minx, double maxx, double miny, double maxy, double minz, double maxz)


void GetRange(int axis, double *min, double *max)


Range_DG GetRange1(int axis)


void SetRange(int axis, double min, double max)


void SetRange1(int axis, Range_DG range)


void SetAll(double min, double max)


IFrame_DG GetLocation()


void SetLocation(IFrame_DG frame)


double GetLimit(int axis, bool min)


bool IsEmpty()


void SetEmpty()


bool IsIn(Point_DG point, double tolerance)


bool IsIn1(double x, double y, double z, double tolerance)


int GetPointLocation(Point_DG point, double tolerance)


void Include(Point_DG point)


void Include1(double x, double y, double z)


void Expand(double by)


void Translate(double vx, double vy, double vz)


Point_DG GetCentre()


Point_DG GetCorner(int index)


Point_DG GetPoint(Point_DG ratiosAt)


Point_DG GetRatios(Point_DG point)


double GetSize(int axis)


double GetMaxSize(bool maxNotMin)


double GetDiagonalLength()


double GetVolume()


IPlane_DG GetPlane(int axis, bool min)


double GetDist(Point_DG point)


double GetDistBox(IBox_DG box)


int GetLineIntersection(ILine_DG line, Range_DG uInside)


void Copy(IBox_DG box)