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

NameTypeAccessDescription
NullBoundingBoxReadThe null bounding box
InfiniteBoundingBoxReadThe infinite bounding box
ExtentBoundingBoxExtentReadGets the extent of the bounding box.
MinimumVector3ReadThe minimum corner of the bounding box
MaximumVector3ReadThe maximum corner of the bounding box
SizeVector3ReadThe size of the bounding box
CenterVector3ReadThe center of the bounding box.

Methods

SignatureDescription
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.

See Also

 English