This is the BoundBox export class Bound box class A bounding box is an orthographic cube which is a way to describe outer boundaries. You get a bounding box from a lot of 3D types. It is often used to check if a 3D entity lies in the range of another object. Checking for boundig interference first can save a lot of computing time! Constructor: App.BoundBox([Xmin,Ymin,Zmin,Xmax,Ymax,Zmax]) App.BoundBox(Tuple, Tuple) App.BoundBox(Vector, Vector) App.BoundBox(BoundBox) method setVoid() Invalidate the bounding box method isValid() Checks if the bounding box is valid method add(BoundBox) Add (enlarge) the given BoundBox method getPoint(Int) Get the point of the given index. The index must be in the range of [0,7] method getEdge(Int) Get the edge points of the given index. The index must be in the range of [0,11] method closestPoint(Vector) Get the closest point of the bounding box to the given point method intersect(BoundBox|Vector Base, Vector Dir) Checks if the given object intersects with the BoundBox. That can be: - Another BoundBox - A line, specified by Base and Dir method intersected(BoundBox) Returns the intersection of this and the given bounding box. method united(BoundBox) Returns the union of this and the given bounding box. method enlarge(Float) Enlarge the BoundBox by the given value in each direction. A negative value shrinks the box. method Vector getIntersectionPoint(Vector Base, Vector Dir, [float epsilon=0.0001]) Calculate the intersection point of a line with the BoundBox The Base point must lie inside the bounding box, if not an exception is thrown. method move(Vector) Move the BoundBox by the given vector method scale(x,y,z) Scale the BoundBox by the given values in x, y and z method transformed(Matrix) Return a new bounding box with the transformed corner of this bounding box method bool isCutPlane(Vector Base, Vector Normal) Check if the plane specified by Base and Normal intersects (cuts) the BoundBox method bool isInside(Vector Base|BoundBox box) Check if the point or bounding box is inside this bounding box Center point of the bounding box The maximum x boundary position The maximum y boundary position The maximum z boundary position The minimum x boundary position The minimum y boundary position The minimum z boundary position Length of the BoundBox in x direction Length of the BoundBox in y direction Length of the BoundBox in z direction Diagonal length of the BoundBox