DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

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

 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.

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.

Create a non-axis-aligned, minimum-volume, oriented bounding box around the input geometries.

public static BoundingBox FromJson(string json)

Parse the incoming JSON string formatted with autodesk.geometry:boundingbox3d-1.0.0 schema.

public bool Contains(Point point)

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.

public bool Intersects(BoundingBox other)

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.

public bool IsEmpty()

Determine if the BoundingBox is empty

public Cuboid ToCuboid()

Get the bounding box as a solid cuboid.

public string ToJson()

Convert the BoundingBox into a JSON object formatted with autodesk.geometry:boundingbox3d-1.0.0 schema.

Get the BoundingBox as a collection of Surfaces.