CFx SDK Documentation 2024 SP0
|
#include <GeBoundBlock3d.h>
Additional Inherited Members | |
Protected Member Functions inherited from OdGeEntity3d | |
OdGeEntity3d () | |
OdGeEntity3d (const OdGeEntity3d &) | |
void | connectTo (OdGeEntity3dImpl *) |
This class implements 3D bounding volumes.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 42 of file GeBoundBlock3d.h.
OdGeBoundBlock3d::OdGeBoundBlock3d | ( | ) |
The default constructor for the OdGeBoundBlock3d class. Constructs a parallelepiped reduced to the coordinate origin.
OdGeBoundBlock3d::OdGeBoundBlock3d | ( | const OdGePoint3d & | base, |
const OdGeVector3d & | side1, | ||
const OdGeVector3d & | side2, | ||
const OdGeVector3d & | side3 | ||
) |
Constructor for the OdGeBoundBlock3d class.
base | [in] Base of a parallelogram bounding block. |
side1 | [in] First side of a parallelogram bounding block. |
side2 | [in] Second side of a parallelogram bounding block. |
side3 | [in] Third side of a parallelogram bounding block. |
OdGeBoundBlock3d::OdGeBoundBlock3d | ( | const OdGePoint3d & | point1, |
const OdGePoint3d & | point2 | ||
) |
Constructor for the OdGeBoundBlock3d class.
point1 | [in] First point of a coordinate-aligned box. |
point2 | [in] Second point of a coordinate-aligned box. |
OdGeBoundBlock3d::OdGeBoundBlock3d | ( | const OdGeBoundBlock3d & | source | ) |
Constructor for the OdGeBoundBlock3d class.
source | [in] Object to be cloned. |
OdGeBoundBlock3d::OdGeBoundBlock3d | ( | const OdGeMatrix3d & | lcs, |
const OdGeExtents3d & | localBox | ||
) |
Constructor for the OdGeBoundBlock3d class.
lcs | [in] Local coordinate system (must be orthogonal). |
localBox | [in] Axis-aligned box in the specified lcs. |
OdGePoint3d OdGeBoundBlock3d::center | ( | ) | const |
Returns the center of the bounding block.
bool OdGeBoundBlock3d::contains | ( | const OdGePoint3d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Checks whether the passed point is contained in the bounding block.
point | [in] Any 3D point. |
tol | [in] Geometric tolerance. |
OdGeBoundBlock3d & OdGeBoundBlock3d::extend | ( | const OdGePoint3d & | point | ) |
Extends the bounding block to contain the specified point.
point | [in] Any 3D point. |
void OdGeBoundBlock3d::get | ( | OdGePoint3d & | base, |
OdGeVector3d & | side1, | ||
OdGeVector3d & | side2, | ||
OdGeVector3d & | side3 | ||
) | const |
Returns base and sides of bounding block.
base | [out] Receives the base of the bounding box. |
side1 | [out] Receives the first side. |
side2 | [out] Receives the second side. |
side3 | [out] Receives the third side. |
void OdGeBoundBlock3d::getMinMaxPoints | ( | OdGePoint3d & | p1, |
OdGePoint3d & | p2 | ||
) | const |
Returns the extents of the bounding block.
p1 | [out] Receives the first corner of the extents. |
p2 | [out] Receives the second corner of the extents. |
bool OdGeBoundBlock3d::isBox | ( | ) | const |
Returns true if and only if this bounding block is a coordinate-aligned box.
bool OdGeBoundBlock3d::isDisjoint | ( | const OdGeBoundBlock3d & | block, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Checks whether the specified bounding block does not intersect this bounding block.
block | [in] Any 3D bounding block. |
tol | [in] Geometric tolerance. |
OdGePoint3d OdGeBoundBlock3d::maxPoint | ( | ) | const |
Gets the maximum point of the OdGeBoundBlock3d object.
OdGePoint3d OdGeBoundBlock3d::minPoint | ( | ) | const |
Gets the minimum point of the OdGeBoundBlock3d object.
OdGeBoundBlock3d & OdGeBoundBlock3d::operator= | ( | const OdGeBoundBlock3d & | block | ) |
The assignment operator for the OdGeBoundBlock3d class.
block | [in] Input OdGeBoundBlock3d object. |
OdGeBoundBlock3d & OdGeBoundBlock3d::set | ( | const OdGePoint3d & | base, |
const OdGeVector3d & | side1, | ||
const OdGeVector3d & | side2, | ||
const OdGeVector3d & | side3 | ||
) |
Sets the bounding block to a parallelepiped bounding block.
base | [in] Base of parallelepiped bounding block. |
side1 | [in] First side of parallelepiped bounding block. |
side2 | [in] Second side of parallelepiped bounding block. |
side3 | [in] Third side of parallelepiped bounding block. |
OdGeBoundBlock3d & OdGeBoundBlock3d::set | ( | const OdGePoint3d & | p1, |
const OdGePoint3d & | p2 | ||
) |
Sets the bounding block to a coordinate-aligned box.
p1 | [in] First point of a coordinate-aligned box. |
p2 | [in] Second point of a coordinate-aligned box. |
OdGeBoundBlock3d & OdGeBoundBlock3d::setToBox | ( | bool | toBox | ) |
Sets this bounding block to a coordinate-aligned box, or a parallelogram bounding block. Returns a reference to this bounding block.
toBox | [in] If true, sets this bounding block to a coordinate-aligned otherwise, sets it to a parallelepiped bounding block. |
|
inline |
Sets this bounding block to a coordinate-aligned box if axes of this bound block are parallel to world coordinate space axes.
Definition at line 279 of file GeBoundBlock3d.h.
|
inline |
Sets this bounding block to a coordinate-aligned box if the specified axes are parallel to world coordinate space axes.
dir1 | [in] First coordinate system axis. |
dir2 | [in] Second coordinate system axis. |
dir3 | [in] Third coordinate system axis. |
Definition at line 261 of file GeBoundBlock3d.h.
OdGeBoundBlock3d & OdGeBoundBlock3d::swell | ( | double | distance | ) |
Moves the walls of the bounding block the specified distance.
distance | [in] Distance. |