CFx SDK Documentation 2024 SP0
|
#include <GeExtents3d.h>
Public Types | |
enum | IntersectionStatus { kIntersectUnknown , kIntersectNot , kIntersectOpIn , kIntersectOpOut , kIntersectOk } |
enum | Convert2dPlane { kConvert2dPlaneXY = 0x04 , kConvert2dPlaneXZ = 0x08 , kConvert2dPlaneYX = 0x01 , kConvert2dPlaneYZ = 0x09 , kConvert2dPlaneZX = 0x02 , kConvert2dPlaneZY = 0x06 } |
Static Public Attributes | |
static GE_STATIC_EXPORT const OdGeExtents3d | kInvalid |
Protected Attributes | |
OdGePoint3d | m_min |
OdGePoint3d | m_max |
This class represents 3D bounding boxes as minimum and maximum 3d points.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 44 of file GeExtents3d.h.
Types of 2D planes.
Enumerator | |
---|---|
kConvert2dPlaneXY | XY plane. |
kConvert2dPlaneXZ | XZ plane. |
kConvert2dPlaneYX | YX plane. |
kConvert2dPlaneYZ | YZ plane. |
kConvert2dPlaneZX | ZX plane. |
kConvert2dPlaneZY | ZY plane. |
Definition at line 340 of file GeExtents3d.h.
Types of intersection results.
Definition at line 267 of file GeExtents3d.h.
|
inline |
Default constructor for the OdGeExtents3d class.
Definition at line 426 of file GeExtents3d.h.
|
inline |
Constructor for the OdGeExtents3d class.
min | [in] Minimum point. |
max | [in] Maximum point. |
Definition at line 432 of file GeExtents3d.h.
|
inline |
Updates the extents of this OdGeExtents3d object with the specified array of points.
extents | [in] Array of 3D points that are added to these extents. |
Definition at line 486 of file GeExtents3d.h.
|
inline |
Updates the extents of this OdGeExtents3d object with the specified point.
point | [in] Any 3D point. |
Definition at line 467 of file GeExtents3d.h.
OdGeExtents3d & OdGeExtents3d::addPoints | ( | const OdGePoint3dArray & | points | ) |
Updates the extents of this OdGeExtents3d object with the specified point.
points | [in] Array of 3D points that are added to extents. |
|
inline |
Returns a center point of this OdGeExtents3d object.
Definition at line 321 of file GeExtents3d.h.
|
inline |
Sets the minimum and maximum points for this OdGeExtents3d object to that of the box defined by pt1 and pt2.
pt1 | [in] First point that defines the extents. |
pt2 | [in] Second point that defines the extents. |
Definition at line 457 of file GeExtents3d.h.
|
inline |
Checks whether if this OdGeExtents3d object contains the specified extents.
extents | [in] 3D extents that are tested to be within these extents. |
tol | [in] Geometric tolerance. |
Definition at line 533 of file GeExtents3d.h.
|
inline |
Checks whether this OdGeExtents3d object contains the specified point.
point | [in] A 3D point that is presumably contained inside these extents. |
tol | [in] Geometric tolerance. |
Definition at line 521 of file GeExtents3d.h.
void OdGeExtents3d::convert2d | ( | OdGeExtents2d & | extents, |
Convert2dPlane | plane = kConvert2dPlaneXY |
||
) | const |
Converts this OdGeExtents3d object to a OdGeExtents2d object.
extents | [out] Resulting converted 2D extents object. |
plane | [in] Plane according to which conversion is calculated. |
|
inline |
Returns the vector from minimum to maximum point.
Definition at line 332 of file GeExtents3d.h.
double OdGeExtents3d::distanceTo | ( | const OdGeExtents3d & | iExtents | ) | const |
Calculates distance to the specified extents.
iExtents | [in] GeExtents3d to find distance to. |
double OdGeExtents3d::distanceTo | ( | const OdGePoint3d & | iPoint | ) | const |
Calculates distance to the specified point.
iPoint | [in] Point to find distance to. |
|
inline |
Updates the extents of this OdGeExtents3d object by the specified vector.
vect | [in] A 3D vector that defines where new points are located. |
Definition at line 512 of file GeExtents3d.h.
IntersectionStatus OdGeExtents3d::intersectWith | ( | const OdGeExtents3d & | extents, |
OdGeExtents3d * | pResult = 0 |
||
) | const |
Determines the intersection of the specified OdGeExtents3d object with this one, and returns the resulting intersection box.
extents | [in] Any 3D Extents object. |
pResult | [out] Receives extents of the intersection. |
@untitled table kIntersectUnknown Either or both extents boxes are invalid kIntersectNot The extents boxes are not intersecting kIntersectOpIn The specified Extents object is completely within this one kIntersectOpOut This OdGeExtents3d object is completely within the specified one kIntersectOk The extents boxes are intersecting, and a result is returned
|
inline |
Checks whether the specified extents do not intersect these extents.
extents | [in] Any 3D Extents object. |
tol | [in] Geometric tolerance. |
Definition at line 545 of file GeExtents3d.h.
bool OdGeExtents3d::isDisjointEuclidean | ( | const OdGeExtents3d & | extents, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Checks whether the specified extents do not intersect these extents.
extents | [in] Any 3D Extents object. |
tol | [in] Geometric tolerance. |
bool OdGeExtents3d::isEqualTo | ( | const OdGeExtents3d & | extents, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Checks if this OdGeExtents3d object is equal to the passed extents.
extents | [in] 3D extents to be compared for equality. |
tol | [in] Geometric tolerance. |
|
inline |
Checks whether this OdGeExtents3d object contains valid extents.
Definition at line 172 of file GeExtents3d.h.
bool OdGeExtents3d::isWithinRange | ( | const OdGePoint3d & | pt, |
double | radius | ||
) |
Checks whether the box intersects the sphere with specified center and radius.
pt | [in] A 3D point that represents the sphere center. |
radius | [in] A radius of the sphere. |
|
inline |
Returns the maximum point of this OdGeExtents3d object.
Definition at line 443 of file GeExtents3d.h.
|
inline |
Returns the minimum point of this OdGeExtents3d object.
Definition at line 438 of file GeExtents3d.h.
|
inline |
Comparison operator for the OdGeExtents3d object.
extents | [in] Other extents to compare. |
Definition at line 413 of file GeExtents3d.h.
|
inline |
Comparison operator for the OdGeExtents3d object.
extents | [in] Other extents to compare. |
Definition at line 400 of file GeExtents3d.h.
|
inline |
Returns the reference to the vertex of the box depending on index.
iIndex | [in] Index of the vertex to return. |
Definition at line 102 of file GeExtents3d.h.
|
inline |
Returns the vertex of the box depending on index.
iIndex | [in] Index of the vertex to return. |
Definition at line 90 of file GeExtents3d.h.
|
inline |
Sets the minimum and maximum points for this OdGeExtents3d object.
min | [in] Minimum point. |
max | [in] Maximum point. |
Definition at line 448 of file GeExtents3d.h.
void OdGeExtents3d::setFrom2d | ( | const OdGeExtents2d & | extents, |
Convert2dPlane | plane = kConvert2dPlaneXY |
||
) |
Sets minimum and maximum points for this OdGeExtents3d object from a passed OdGeExtents2d object.
extents | [in] 2D extents from which conversion is calculated. |
plane | [in] Plane on which the OdGeExtents2d object lies. |
void OdGeExtents3d::transformBy | ( | const OdGeMatrix3d & | xfm | ) |
Applies the 3D transformation matrix to the extents.
xfm | [in] 3D transformation matrix. |
|
static |
The invalid extents.
Definition at line 65 of file GeExtents3d.h.
|
protected |
Definition at line 420 of file GeExtents3d.h.
|
protected |
Definition at line 419 of file GeExtents3d.h.