bbox.center
The centre point of a box.
Usage
BBox.center(b: BBox): Point3Parameters
bBBoxThe box. Required. In model.
Returns
The midpoint of min and max; NaN coordinates for an empty box (check BBox.isEmpty first).
Example
BBox.center(BBox.ofPoints([Point3.origin, Point3.of(2, 4, 6)])) // → { x: 1, y: 2, z: 3 }