BoundingBox — Aspose.3D FOSS for Java

Overview

BoundingBox represents an axis-aligned bounding box (AABB) defined by two Vector3 corners – the minimum and maximum extents. It is returned by Node.getBoundingBox() and is used for spatial queries, frustum culling, and size calculations.

Package: com.aspose.threed

import com.aspose.threed.*;

Properties

NameTypeGetterDescription
minimumVector3getMinimum()The corner with the smallest x, y, z values
maximumVector3getMaximum()The corner with the largest x, y, z values

Methods

No public methods are defined on BoundingBox beyond the property getters above.

Note: merge(Vector3 point) and merge(BoundingBox other) exist in the commercial Aspose.3D API but are not present in the FOSS edition source. Calling these methods will result in a compile error.

Note: Node.getBoundingBox() and Entity.getBoundingBox() are stubs in this edition — they always return a sentinel BoundingBox with minimum = (Double.MAX_VALUE, Double.MAX_VALUE, Double.MAX_VALUE) and maximum = (Double.MIN_VALUE, Double.MIN_VALUE, Double.MIN_VALUE). No geometry-based computation is performed. Do not use these methods to measure actual model bounds.

Example

import com.aspose.threed.*;

// BoundingBox can be constructed directly with explicit min/max corners
BoundingBox bbox = new BoundingBox(
    new Vector3(0.0, 0.0, 0.0),
    new Vector3(10.0, 5.0, 3.0)
);

Vector3 min = bbox.getMinimum(); // (0, 0, 0)
Vector3 max = bbox.getMaximum(); // (10, 5, 3)

See Also