World-space AABB of meshes, folding each mesh's local frame:
world = origin + positions[3i..3i+3].
Reading positions without adding origin is the standing local-frame
defect in this codebase (see MeshData.origin): it reports a box around
the model ORIGIN instead of around the model, which would place the
synthetic camera plane in the wrong place entirely.
Returns null when no mesh contributes a vertex — the caller must decide
what an empty view means rather than receive an inverted/infinite box.
World-space AABB of
meshes, folding each mesh's local frame:world = origin + positions[3i..3i+3].Reading
positionswithout addingoriginis the standing local-frame defect in this codebase (seeMeshData.origin): it reports a box around the model ORIGIN instead of around the model, which would place the synthetic camera plane in the wrong place entirely.Returns
nullwhen no mesh contributes a vertex — the caller must decide what an empty view means rather than receive an inverted/infinite box.