# OrthogonalBox struct

Namespace: [Grasshopper2.Geometry.SpatialTree](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.geometry.spatialtree.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public struct OrthogonalBox
```

Represents a world-aligned rectangular volume.

## Constructors

- [OrthogonalBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/ctor.md): (3 overloads) Create a new spatial box from a rhinocommon bounding box.

## Properties

- [Area](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/area.md): Gets the area of this box.
- [Centre](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/centre.md): Gets the centre of this box.
- [Corners](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/corners.md): Enumerate over all corners of this box.
- [Edges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/edges.md): Enumerate over all edges of this box.
- [Faces](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/faces.md): Enumerate over all faces of this box.
- [IsDegenerate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/isdegenerate.md): Gets whether at least one box dimension is less than the coincidence tolerance.
- [IsInfinite](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/isinfinite.md): Gets whether this box is infinite.
- [IsSingular](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/issingular.md): Gets whether the largest box dimension is less than the coincidence tolerance.
- [IsUnset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/isunset.md): Gets whether this box is unset.
- [LargestDimension](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/largestdimension.md): Gets the largest dimension (width, depth or height).
- [SmallestDimension](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/smallestdimension.md): Gets the smallest dimension (width, depth or height).
- [Unset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/unset.md): (static) Create an empty region.
- [Volume](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/volume.md): Gets the volume of this region.
- [X0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/x0.md): Gets the x lower limit.
- [X1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/x1.md): Gets the x upper limit.
- [XSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/xsize.md): Gets the width of this region (the size along X).
- [Y0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/y0.md): Gets the y lower limit.
- [Y1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/y1.md): Gets the y upper limit.
- [YSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/ysize.md): Gets the depth of this region (the size along Y).
- [Z0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/z0.md): Gets the z lower limit.
- [Z1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/z1.md): Gets the z upper limit.
- [ZSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/zsize.md): Gets the height of this region (the size along Z).

## Methods

- [ClosestPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/closestpoint.md): Find the coordinate on or in the box closest to a point.
- [Corner](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/corner.md): Gets the corner associated with the given index.
- [DistanceToFurthestPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/distancetofurthestpoint.md): Measure the distance to the furthest point on the box.
- [DistanceToNearestPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/distancetonearestpoint.md): Measure the distance to the interior of the box.
- [Edge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/edge.md): Gets the edge associated with the given index.
- [Face](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/face.md): Gets the face associated with the given index. 0=bottom, 1=front, 2=right, 3=back, 4=left, 5=top.
- [FurthestPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/furthestpoint.md): Find the coordinate on the box furthest from a point.
- [Grow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/grow.md): Gros this region until it encompasses the given coordinates.
- [Intersection](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/intersection.md): Create the intersection of a collection of regions.
- [IntersectsWith](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/intersectswith.md): Finds whether two regions intersect.
- [IsCoincident](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/iscoincident.md): Test whether a coordinate triplet is exactly coincident with the boundary region. If you need a tolerance based test, you must write your own.
- [IsInside](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/isinside.md): Test whether a coordinate triplet is inside this region. Coincidence is assumed to mean inclusion along the min faces, but not along the max faces. This allows distinct inclusion amongst precisely stacked regions.
- [QuadranceToFurthestPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/quadrancetofurthestpoint.md): Measure the quadrance (ie. distance squared) to the furthest point on the box.
- [QuadranceToLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/quadrancetoline.md): Measure the minimum and maximum quadrance to a line.
- [QuadranceToNearestPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/quadrancetonearestpoint.md): Measure the quadrance (ie. distance squared) to the interior of the box.
- [QuadranceToPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/quadrancetopoint.md): Measure the minimum and maximum quadrance to a point.
- [QuadranceToSlice](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/quadrancetoslice.md): Measure the minimum and maximum quadrance to a slice.
- [QuadranceToSphere](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/quadrancetosphere.md): Measure the minimum and maximum quadrance to a sphere.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/tostring.md): Returns the fully qualified type name of this instance.
- [Union](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox/union.md): Create the union of a collection of regions.
