Record TBox3D
Unit
Declaration
type TBox3D = record
Description
Axis-aligned box. Rectangular prism with all sides parallel to basic planes X = 0, Y = 0 and Z = 0. This is sometimes called AABB, "axis-aligned bounding box". Many geometric operations are fast and easy on this type.
The actual box dimensions are stored inside the Data field, as two 3D points. First point has always all the smaller coords, second point has all the larger coords. I.e. always
Data[0].X <= Data[1].X and Data[0].Y <= Data[1].Y and Data[0].Z <= Data[1].Z
The only exception is the special value TBox3D.Empty.
Note that the box may still have all sizes equal 0. Consider a 3D model with only a single 3D point — it's not empty, but all the sizes must be 0.
Source: transform/castleboxes.pas (line 71).
Generated by PasDoc 0.17.0.snapshot.