mesh-examples/12-14-mesh/Me083.mesh.json
Sources
- MeshFix `checkAndRepair::checkConnectivity` Branch 5 (*COINCIDENT_EDGE_ENDPOINTS*)
- `MESH_HEAL_COVERAGE.md`.
Description
vertices v2 and v3 are distinct indices but share the same position (0,0,1). Triangle t1 = (v0, v2, v3) has a zero-length edge between v2 and v3 — coincident endpoints. MeshFix Branch 5 fires when edge.v0.pos == edge.v1.pos. The degenerate triangle has zero area and its edge (v2,v3) has zero length.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0,0,1), v3=(0,0,1); t0=(v0,v1,v2) valid; t1=(v0,v2,v3) degenerate.
Expected kernel behavior
merge coincident vertices v2/v3 via mergeCoincidentEdges or similar; remove the resulting degenerate face.
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 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0, 15 0.0, 16 1.0 17 ], 18 [ 19 0.0, 20 0.0, 21 1.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 2, 33 3 34 ] 35 ], 36 "metadata": { 37 "id": "Me083", 38 "schema_version": 0, 39 "defect_class": "near_coincident_vertex", 40 "title": "connectivity coincident edge endpoints: edge (v2,v3) has zero length \u2014 both at (0,0,1)", 41 "assertions": [ 42 { 43 "kind": "vertex_pair_distance_lt", 44 "pair": [ 45 2, 46 3 47 ], 48 "lt": 1e-12 49 }, 50 { 51 "kind": "triangle_area_lt", 52 "triangle": 1, 53 "lt": 1e-12 54 } 55 ] 56 } 57}