BoundingBox constructor
Contents
[
Hide
]__init__(self)
Constructs a new instance of BoundingBox
def __init__(self):
...
__init__(self, minimum, maximum)
Initialize a finite bounding box with given minimum and maximum corner
def __init__(self, minimum, maximum):
...
| Parameter | Type | Description |
|---|---|---|
| minimum | Vector3 | The minimum corner |
| maximum | Vector3 | The maximum corner |
Example
The following code shows how to construct a bounding box from minimum and maximum corners.
from aspose.threed.utilities import BoundingBox, Vector3
minimum = Vector3(0, 0, 0)
maximum = Vector3(10, 10, 10)
boundingBox = BoundingBox(minimum, maximum)
print("Bounding box = " + str(boundingBox))
__init__(self, min_x, min_y, min_z, max_x, max_y, max_z)
Initialize a finite bounding box with given minimum and maximum corner
def __init__(self, min_x, min_y, min_z, max_x, max_y, max_z):
...
| Parameter | Type | Description |
|---|---|---|
| min_x | float | The minimum corner’s X |
| min_y | float | The minimum corner’s Y |
| min_z | float | The minimum corner’s Z |
| max_x | float | The maximum corner’s X |
| max_y | float | The maximum corner’s Y |
| max_z | float | The maximum corner’s Z |
Example
The following code shows how to construct a bounding box from minimum and maximum corners.
from aspose.threed.utilities import BoundingBox
boundingBox = BoundingBox(0, 0, 0, 10, 10, 10)
print("Bounding box = " + str(boundingBox))
See Also
- module
aspose.threed.utilities - class
BoundingBox