bbox.ofPoints
The smallest axis-aligned box containing every finite point.
Usage
BBox.ofPoints(points: Iterable<Point3>): BBoxParameters
pointsIterable<Point3>The points; any iterable, read once. Required. In model.
Returns
A box whose min and max are the per-axis extremes; BBox.empty when there are no finite points.
Use instead
bbox.ofFlat: the positions are a flat[x0, y0, z0, …]array
Example
BBox.ofPoints([Point3.of(1, 5, 0), Point3.of(3, 2, -1)]) // → { min: { x: 1, y: 2, z: -1 }, max: { x: 3, y: 5, z: 0 } }