fn verify_and_derive_placement(
template: &MeshData,
target: &MeshData,
rel: &[f64; 16],
) -> (f64, [f64; 3], [f64; 9])Expand description
Given rel (row-major mat4, the InstanceOccurrence::transform that maps
the TEMPLATE’s baked world geometry onto this occurrence’s baked world
geometry — see ifc_lite_geometry::instancing), derive this occurrence’s
origin + rotation and verify them against the occurrence’s OWN (ground
truth) baked positions. Returns (max_residual_m, origin_zup, rotation_zup);
the caller must reject the placement when the residual exceeds
RECOMPOSITION_TOLERANCE_M or is non-finite (mismatched vertex counts).