Variable farFromOriginGeometriesConst

farFromOriginGeometries: inspect.sceneModel.Inspection = ...

Opt-in (InspectSceneModelParams.checkGeometryFarFromOrigin). Flags every SceneGeometry whose local AABB centroid has magnitude above InspectSceneModelParams.maxOriginDistance (default 1e6).

This is a different failure mode from objectPlacement's OBJECT_FAR_FROM_ORIGIN: that check looks at the world-space AABB after mesh.worldMatrix is applied. GEOMETRY_FAR_FROM_ORIGIN localises the offset to the geometry itself — the quantisation range encoded in geom.aabb is far from origin, so dequantised positions land far from origin even before any mesh matrix runs.

Loaders sometimes bake a global translation into geometry positions (georeferenced BIM, for instance) instead of using mesh.matrix / a parent SceneTransform. The matching recenterGeometry relocates the offset out of the geometry into each referencing mesh's matrix, preserving every vertex's world position while keeping geom.aabb centred at the origin so the renderer's float precision is preserved.

highlight.objectIds covers every SceneObject that owns a mesh referencing the offending geometry, so the example UI's Locate button lights up the affected elements.