mesh-examples/12-14-mesh/Me1150.mesh.json
Sources
- CGAL PMP `PMP.is_degenerate_edge` Branch 1 (*equal_points*: `if(get(vpm, source(e, tm)) == get(vpm, target(e, tm))) return true`)
- `MESH_HEAL_COVERAGE.md`.
Description
A single triangle (v0,v1,v2) where both endpoints of the first edge share the same 3D coordinate (0,0,0). v0 and v1 are topologically distinct indices but geometrically coincident; the edge v0→v1 has zero length. PMP.is_degenerate_edge fires Branch 1 (equal_points) immediately on this edge. The triangle also has zero area as a consequence. Third vertex v2=(1,0,0) prevents the face from being completely degenerate.
Reproducer recipe
v0=(0,0,0), v1=(0,0,0) [==v0], v2=(1,0,0); t0=(v0,v1,v2); assert_vertex_pair_distance_lt(v0,v1,1e-9); assert_edge_shared(v0,v1,1); assert_triangle_area_lt(t0,1e-9).
Expected kernel behavior
Branch 1 fires; source(e,tm)==target(e,tm) in coordinate space; function returns true immediately.
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.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 0.0, 16 0.0 17 ] 18 ], 19 "triangles": [ 20 [ 21 0, 22 1, 23 2 24 ] 25 ], 26 "metadata": { 27 "id": "Me1150", 28 "schema_version": 0, 29 "defect_class": "degenerate_edge", 30 "title": "is_degenerate_edge equal_points: endpoint positions identical \u2014 zero-length edge between v0==v1 at (0,0,0)", 31 "assertions": [ 32 { 33 "kind": "vertex_pair_distance_lt", 34 "pair": [ 35 0, 36 1 37 ], 38 "lt": 1e-09 39 }, 40 { 41 "kind": "edge_shared_by_n_triangles", 42 "edge": [ 43 0, 44 1 45 ], 46 "n": 1 47 }, 48 { 49 "kind": "triangle_area_lt", 50 "triangle": 0, 51 "lt": 1e-09 52 } 53 ] 54 } 55}