verify_recomposition

Function verify_recomposition 

Source
pub fn verify_recomposition(meshes: &[Mesh], collated: &Collated) -> f64
Expand description

Maximum per-vertex world-space error (in mesh units) when each occurrence is reconstructed by applying its instance transform to the template’s baked world geometry, versus the occurrence’s own baked world geometry. The template-relative transform operates on world coords, so each mesh’s origin is folded in. Used by tests + as a runtime diagnostic — [verify_pairing] above runs the same [reconstructed_vertex_error] kernel inline, per candidate group, so a production caller never has to run this after the fact to find out its Collated shipped a mis-grouped occurrence.