mesh-examples/12-14-mesh/Me009.mesh.json
Sources
- `MESH_DEFECT_TAXONOMY.md` #22 (`t_junction`)
- CGAL `Snapping::snap`
- MeshFix `meshclean` (partial).
Description
vertex 3 is the exact midpoint of the segment from `v0=(0,0,0)` to `v2=(1,0,0)`, which is an edge of triangle 0. Triangles 1 and 2 meet at v3 on the opposite side, but triangle 0 has no knowledge of v3 — its edge `(v0, v2)` passes through v3 without listing it. This causes topological cracks in shading and CSG, as the patch boundary on one side does not match the topology on the other.
Reproducer recipe
triangle 0 = `(v0, v1, v2)`; v3 = midpoint of `(v0, v2)`; triangle 1 = `(v0, v4, v3)`; triangle 2 = `(v3, v4, v2)`.
Expected kernel behavior
detect that v3 lies on edge `(v0, v2)` and split that edge to insert v3, creating a topologically watertight seam.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 0.0, 5 0.0, 6 0.0 7 ], 8 [ 9 0.5, 10 1.0, 11 0.0 12 ], 13 [ 14 1.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.5, 20 0.0, 21 0.0 22 ], 23 [ 24 0.5, 25 -1.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 4, 38 3 39 ], 40 [ 41 3, 42 4, 43 2 44 ] 45 ], 46 "metadata": { 47 "id": "Me009", 48 "schema_version": 0, 49 "defect_class": "t_junction", 50 "title": "T-junction: vertex 3 lies on edge (v0,v2) of triangle 0 but is not listed in it", 51 "assertions": [ 52 { 53 "kind": "vertex_on_edge", 54 "vertex": 3, 55 "edge": [ 56 0, 57 2 58 ] 59 } 60 ] 61 } 62}