mesh-examples/12-14-mesh/Me980.mesh.json
Sources
- CGAL PMP `PMP.merge_reversible_connected_components` Branch 1 (*component_area_filter*: `if (component.area() < area_threshold) { mark_as_mergeable(component)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected connected components: CC-A is a single large triangle (vertices at (0,0,0),(1,0,0),(0,1,0); area=0.5) and CC-B is a micro-triangle at (10,0,0) with side length 1e-4 (area≈5e-9). CC-B falls below any reasonable area threshold, so the component_area_filter branch fires and marks CC-B as a merge candidate. CC-A and CC-B share no edges. Euler: V=6, E=6, F=2, chi=2.
Reproducer recipe
a0=(0,0,0), a1=(1,0,0), a2=(0,1,0); b0=(10,0,0), b1=(10,1e-4,0), b2=(10,0,1e-4); t0=(a0,a1,a2); t1=(b0,b1,b2); assert_triangle_not_reachable_from(1,0); assert_triangle_area_lt(1,1e-7); euler V=6,E=6,F=2,chi=2.
Expected kernel behavior
Branch 1 fires on CC-B; component_area_filter marks the micro-triangle component as reversible/mergeable because its area is below threshold.
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 1.0, 16 0.0 17 ], 18 [ 19 10.0, 20 0.0, 21 0.0 22 ], 23 [ 24 10.0, 25 0.0001, 26 0.0 27 ], 28 [ 29 10.0, 30 0.0, 31 0.0001 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 3, 42 4, 43 5 44 ] 45 ], 46 "metadata": { 47 "id": "Me980", 48 "schema_version": 0, 49 "defect_class": "multi_component_area_imbalance", 50 "title": "merge_reversible_connected_components component_area_filter: micro-triangle CC-B (area\u22485e-9) below threshold; marked as mergeable (Branch 1)", 51 "assertions": [ 52 { 53 "kind": "triangle_not_reachable_from", 54 "target": 1, 55 "source": 0 56 }, 57 { 58 "kind": "triangle_area_lt", 59 "triangle": 1, 60 "lt": 1e-07 61 }, 62 { 63 "kind": "euler_characteristic", 64 "v": 6, 65 "e": 6, 66 "f": 2, 67 "chi": 2 68 } 69 ] 70 } 71}