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) Rectangle1 = project.Geometry:AddRectangle(corner, 1, 1) -- 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:
- Primitive(.BoundingBox)
- SurfaceBezierCurve(.BoundingBox)
- SurfaceRegularLines(.BoundingBox)
- SurfaceLine(.BoundingBox)
- ConstrainedSurface(.BoundingBox)
- Region(.BoundingBox)
- Face(.BoundingBox)
- Edge(.BoundingBox)
- GeometryEntity(.BoundingBox)
- Simplify(.BoundingBox)
- ImprintPoints(.BoundingBox)
- ProjectGeometry(.BoundingBox)
- PathSweep(.BoundingBox)
- Sweep(.BoundingBox)
- Loft(.BoundingBox)
- Spin(.BoundingBox)
- Subtract(.BoundingBox)
- Intersect(.BoundingBox)
- Stitch(.BoundingBox)
- Union(.BoundingBox)
- Split(.BoundingBox)
- Helix(.BoundingBox)
- HyperbolicArc(.BoundingBox)
- ParabolicArc(.BoundingBox)
- EllipticArc(.BoundingBox)
- AnalyticalCurve(.BoundingBox)
- BezierCurve(.BoundingBox)
- FittedSpline(.BoundingBox)
- Polyline(.BoundingBox)
- Line(.BoundingBox)
- NurbsSurface(.BoundingBox)
- Polygon(.BoundingBox)
- Rectangle(.BoundingBox)
- Paraboloid(.BoundingBox)
- Ellipse(.BoundingBox)
- Spheroid(.BoundingBox)
- Flare(.BoundingBox)
- Cone(.BoundingBox)
- Cylinder(.BoundingBox)
- Cuboid(.BoundingBox)
- Geometry(.BoundingBox)
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
- Read only
- Corner1
- The corner of the box closest to the origin.
- Type
- Point
- Access
- Read only
- Corner2
- The second corner of the box farthest from the origin.
- Type
- Point
- Access
- Read only
- Depth
- The depth of the box (how long it is along the Y axis).
- Type
- number
- Access
- Read only
- Height
- The Height of the box (how long it is along the Z axis).
- Type
- number
- Access
- Read only
- Type
- The object type string.
- Type
- string
- Access
- Read only
- Width
- The width of the box (how long it is along the X axis).
- Type
- number
- Access
- Read only