Click or drag to resize
BoundingBox Structure
Represents the value of two points in a bounding box defined by the two extreme corner points.

This box is therefore aligned to the world X, Y and Z axes.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
[SerializableAttribute]
public struct BoundingBox

The BoundingBox type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCenter
Gets the point in the center of the boundingbox.
Public propertyDiagonal
Gets the diagonal vector of this BoundingBox. The diagonal connects the Min and Max points.
Public propertyStatic memberEmpty
Gets an [Empty] boundingbox. An Empty box is an invalid structure that has negative width.
Public propertyIsValid
Gets a value that indicates whether or not this boundingbox is valid. Empty boxes are not valid, and neither are boxes with unset points.
Public propertyMax
Gets or sets the point in the maximal corner.
Public propertyMin
Gets or sets the point in the minimal corner.
Public propertyStatic memberUnset
Gets a boundingbox that has Unset coordinates for Min and Max.
Top
Methods
  NameDescription
Public methodClosestPoint(Point3d)
Finds the closest point on or in the boundingbox.
Public methodClosestPoint(Point3d, Boolean)
Finds the closest point on or in the boundingbox.
Public methodContains(BoundingBox)
Determines whether this boundingbox contains another boundingbox.

This is the same as calling Contains(box,false).

Public methodContains(Point3d)
Tests a point for boundingbox inclusion. This is the same as calling Contains(point, false)
Public methodContains(BoundingBox, Boolean)
Determines whether this boundingbox contains another boundingbox.

The user can choose how to treat boundingboxes with coincidents surfaces.

Public methodContains(Point3d, Boolean)
Tests a point for BoundingBox inclusion.
Public methodCorner
Gets one of the eight corners of the box.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodFurthestPoint
Finds the furthest point on the Box.
Public methodCode exampleGetCorners
Gets an array filled with the 8 corner points of this box.

See remarks for the return order.

Public methodGetEdges
Gets an array of the 12 edges of this box.
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInflate(Double)
Inflates the box with equal amounts in all directions. Inflating with negative amounts may result in decreasing boxes.

Invalid boxes can not be inflated.

Public methodInflate(Double, Double, Double)
Inflate the box with custom amounts in all directions. Inflating with negative amounts may result in decreasing boxes.

InValid boxes can not be inflated.

Public methodStatic memberIntersection
Computes the intersection of two bounding boxes.
Public methodCode exampleIsDegenerate
Determines whether a bounding box is degenerate (flat) in one or more directions.
Public methodMakeValid
Ensures that the box is defined in an increasing fashion along X, Y and Z axes. If the Min or Max points are unset, this function will not change the box.
Public methodPointAt
Evaluates the boundingbox with normalized parameters.

The box has idealized side length of 1x1x1.

Public methodCode exampleToBrep
Constructs a Brep representation of this boundingbox.
Public methodToString
Constructs the string representation of this aligned boundingbox.
(Overrides ValueTypeToString.)
Public methodTransform
Updates this boundingbox to be the smallest axis aligned boundingbox that contains the transformed result of its 8 original corner points.
Public methodUnion(BoundingBox)
Updates this BoundingBox to represent the union of itself and another box.
Public methodUnion(Point3d)
Updates this BoundingBox to represent the union of itself and a point.
Public methodStatic memberUnion(BoundingBox, BoundingBox)
Returns a new BoundingBox that represents the union of boxes a and b.
Public methodStatic memberUnion(BoundingBox, Point3d)
Returns a new BoundingBox that represents the union of a bounding box and a point.
Top
See Also