DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="2.13.0.3485" />

 BoundingBox

The CoordinateSystem that this BoundingBox is defined in

public Point MaxPoint { get; }

The maximum point

public Point MinPoint { get; }

The minimum point

public static BoundingBox ByCorners(Point min, Point max)

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.

public static BoundingBox ByGeometry(Geometry geom)

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.

Create a non-axis-aligned BoundingBox around input Geometries, oriented in the X, Y, and Z axis of the CoordinateSystem.

public bool Contains(Point point)

Determine if a point is inside of the bounding box.

Get the intersection of two BoundingBoxes

public bool Intersects(BoundingBox other)

Determine whether two BoundingBoxes intersect

public bool IsEmpty()

Determine if the BoundingBox is empty

public Cuboid ToCuboid()

Get the bounding box as a solid cuboid.

Get the BoundingBox as a collection of Surfaces.