BoundingBox
Overview
BoundingBox is a struct in Aspose.3D FOSS for .NET.
The axis-aligned bounding box
This struct provides 16 methods for working with BoundingBox objects in .NET programs.
Available methods include: BoundingBox, Contains, Equals, FromGeometry, GetHashCode, Merge, OverlapsWith, Scale, ToString.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Center, Extent, Infinite, Maximum, Minimum, Null, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Null | BoundingBox | Read | The null bounding box |
Infinite | BoundingBox | Read | The infinite bounding box |
Extent | BoundingBoxExtent | Read | Gets the extent of the bounding box. |
Minimum | Vector3 | Read | The minimum corner of the bounding box |
Maximum | Vector3 | Read | The maximum corner of the bounding box |
Size | Vector3 | Read | The size of the bounding box |
Center | Vector3 | Read | The center of the bounding box. |
Methods
| Signature | Description |
|---|---|
BoundingBox(minimum: Vector3, maximum: Vector3) | Initialize a finite bounding box with given minimum and maximum corner |
BoundingBox(minimum: FVector3, maximum: FVector3) | Initialize a finite bounding box with given minimum and maximum corner |
BoundingBox(minX: double, minY: double, minZ: double, maxX: double, maxY: double, maxZ: double) | Initialize a finite bounding box with given minimum and maximum corner |
Scale() | Calculates the absolute largest coordinate value of any contained point. |
FromGeometry(geometry: Geometry) | Construct a bounding box from given geometry |
Merge(pt: Vector4) | Merge current bounding box with given point |
Merge(pt: Vector3) | Merge current bounding box with given point |
Merge(pt: FVector3) | Merge current bounding box with given point |
Merge(x: double, y: double, z: double) | Merge current bounding box with given point |
Merge(bb: BoundingBox) | Merges the new box into the current bounding box. |
ToString() | Gets the string representation of the bounding box. |
GetHashCode() | Returns the hash code for this instance |
Equals(obj: object) | Determines if two objects are equal |
OverlapsWith(box: BoundingBox) | Check if current bounding box overlaps with specified bounding box. |
Contains(p: Vector3) | Check if the point p is inside the bounding box |
Contains(bbox: BoundingBox) | The bounding box to check if it’s inside current bounding box. |