BoundingBox
General
BoundingBox és una classe en Aspose.3d per a Python.
BoundingBox proporciona consultes geomètriques com mínim, màxim, centre, mida i pot provar la contenció i sobreposa amb altres cases.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
minimum | `` | Read | Is the minimum corner point (lowest x, y, z) of the box |
maximum | `` | Read | |
center | `` | Read | Is the geometric center point of the box |
size | `` | Read | Is the vector representing the box dimensions along each axis |
extent | `` | Read | Is the half-size vector from the center to the maximum corner |
Mètodes
| Signature | Description |
|---|---|
__init__() | |
get_null() → 'BoundingBox' | Returns a BoundingBox representing an empty box |
get_infinite() → 'BoundingBox' | Returns a BoundingBox representing an infinite box |
merge() | Expands this box to include another bounding box |
contains(arg) | Checks whether the box fully contains the given point or box |
overlaps_with(box: 'BoundingBox') → bool | Returns true if this box overlaps the specified BoundingBox |
scale() → float | Returns the uniform scaling factor applied to the box |
from_geometry(geometry) | Creates a BoundingBox that encloses the given geometry |