vrdBoundingBox¶
-
class
vrdBoundingBox
¶
(Inherits vrdData
)
Holds an axis aligned bounding box.
Summary¶
Functions¶
-
vrdBoundingBox.
extendBy
(bb)¶ Extend the current bounding box with the given one.
Parameters: bb (vrdBoundingBox) – Bounding box
-
vrdBoundingBox.
getCenter
()¶ Get center of bounding box.
Returns: Center point Return type: QVector3D
-
vrdBoundingBox.
getMax
()¶ Get maximum of bounding box.
Returns: Maximum corner Return type: QVector3D
-
vrdBoundingBox.
getMin
()¶ Get minimum of bounding box.
Returns: Minimum corner Return type: QVector3D
-
vrdBoundingBox.
getSize
()¶ Gets the extents along x-, y-, and z-axis.
Returns: Extents along x-, y-, and z-axis Return type: QVector3D
-
vrdBoundingBox.
isValid
()¶ Returns if the bounding box is valid.
Returns: True, if bounding box is valid Return type: bool
-
vrdBoundingBox.
setMax
(max)¶ Set maximum of bounding box.
Parameters: max (QVector3D) – Maximum corner
-
vrdBoundingBox.
setMin
(min)¶ Set minimum of bounding box.
Parameters: min (QVector3D) – Minimum corner
-
vrdBoundingBox.
vrdBoundingBox
()¶ Default constructor.
-
vrdBoundingBox.
vrdBoundingBox
(min, max)¶ Create bounding box with minimum and maximum corner.
Parameters: - min (QVector3D) – Minimum corner
- max (QVector3D) – Maximum corner