Skip to main content

Module meshdiff

Module meshdiff 

Source
Expand description

Mesh-based geometric diff for STL/OBJ โ€” pure Rust, no Open CASCADE.

Triangle meshes have no B-Rep faces or solids, so the STEP pipeline does not apply. Instead each triangle is classified by distance to the other mesh: a triangle of the new version with no nearby surface in the old one is added, a triangle of the old version with nothing nearby in the new one is removed, and the rest is unchanged. The result is emitted in the very same [geom::MeshDiff] shape the 3D viewer already consumes (unchanged / added / removed triangle layers), so STL/OBJ get the same green/red/grey view as STEP โ€” without needing the geometry helper.

Functionsยง

diff
Diff two meshes (raw file bytes) and return the colored layers.