BoundingBox
The CoordinateSystem of the BoundingBox. For an axis-aligned box, the CS is oriented along with the X, Y, Z axes and is located at the center of the box. For a non-aligned box, the CS can have an arbitrary orientation and is centered at the center of the box.
The maximum point
The minimum point
Creates the an axis-aligned BoundingBox spanning between the minimum Point and the maximum Point.
Constructs a BoundingBox from minimum coordinates (lower-left-rear corner of the box), to maximum coordinates (upper-right-front corner of the box). CoordinateSystem is the transform FROM the coordinate space of the box TO the model space. This method is designed to match Revit's API, allowing you to extract out the parameters from a Revit BoundingBox without any conversions.
Create an axis-aligned BoundingBox around input Geometry.
Create an axis-aligned BoundingBox around input Geometries.
Create a non-axis-aligned BoundingBox around input Geometry, oriented in the X, Y, and Z axis of the CoordinateSystem.
public static BoundingBox ByGeometryCoordinateSystem(IEnumerable<Geometry> geom, CoordinateSystem cs)
Create a non-axis-aligned BoundingBox around input Geometries, oriented in the X, Y, and Z axis of the CoordinateSystem.
Create a non-axis-aligned, minimum-volume, oriented bounding box around the input geometries.
Parse the incoming JSON string formatted with autodesk.geometry:boundingbox3d-1.0.0 schema.
Determine if a point is inside of the bounding box.
Get the intersection of two BoundingBoxes. Note: This does not work for non-axis-aligned boxes as those intersections might not result in a box. Intersect their corresponding cuboids instead.
Determine whether two BoundingBoxes intersect. Note: This works only if both bounding boxes have the same alignment (transform). In such cases, test the intersection between their corresponding cuboids.
Determine if the BoundingBox is empty
Get the bounding box as a solid cuboid.
Convert the BoundingBox into a JSON object formatted with autodesk.geometry:boundingbox3d-1.0.0 schema.
Get the BoundingBox as a collection of Surfaces.