# Box

A box in 3D space. The box is defined by its two corners.

## Example

app = cf.GetApplication()
project = app:NewProject()

corner = cf.Point(0,0,0)

-- Retrieve the 'BoundingBox' of the rectangle

boundingBox = Rectangle1.Faces["Face1"].BoundingBox

-- Access the 'Width' of the rectangle's 'BoundingBox'

width = boundingBox.Width

-- Access the corner of the 'BoundingBox' furthest from the origin

boundingBoxCorner = boundingBox.Corner2

## Usage locations (object properties)

The following objects have properties using the Box object:

## Property List

Centre
The centre of the box. (Read only Point)
Corner1
The corner of the box closest to the origin. (Read only Point)
Corner2
The second corner of the box farthest from the origin. (Read only Point)
Depth
The depth of the box (how long it is along the Y axis). (Read only number)
Height
The Height of the box (how long it is along the Z axis). (Read only number)
Type
The object type string. (Read only string)
Width
The width of the box (how long it is along the X axis). (Read only number)

## Property Details

Centre
The centre of the box.
Type
Point
Access
Corner1
The corner of the box closest to the origin.
Type
Point
Access
Corner2
The second corner of the box farthest from the origin.
Type
Point
Access
Depth
The depth of the box (how long it is along the Y axis).
Type
number
Access
Height
The Height of the box (how long it is along the Z axis).
Type
number
Access