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

NameTypeAccessDescription
minimum``ReadIs the minimum corner point (lowest x, y, z) of the box
maximum``Read
center``ReadIs the geometric center point of the box
size``ReadIs the vector representing the box dimensions along each axis
extent``ReadIs the half-size vector from the center to the maximum corner

Mètodes

SignatureDescription
__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')boolReturns true if this box overlaps the specified BoundingBox
scale()floatReturns the uniform scaling factor applied to the box
from_geometry(geometry)Creates a BoundingBox that encloses the given geometry
 Català