mesh-examples/12-14-mesh/Me921.mesh.json
Sources
- CGAL `PMP.keep_largest_connected_components` Branch 2 @ line 410 (*component_size_criterion*)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components of markedly different face counts. Component A is a 4-triangle unit-square+apex patch near the origin (face_size=4). Component B is a single micro-triangle at (10,10,0) with area≈5e-5 (face_size=1). With desired_num=1, Branch 2 sorts components by `Face_size` property-map value and marks component B (smaller) for removal while retaining component A (larger).
Reproducer recipe
v0-v4 form a 4-triangle patch (t0-t3); v5=(10,10,0), v6=(10.01,10,0), v7=(10,10.01,0) form micro-triangle t4 (area≈5e-5). t4 unreachable from t0.
Expected kernel behavior
face_size sorted; component B (size 1) < component A (size 4) → component B marked for removal; Branch 2 keeps component A.
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 1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 0.5, 25 0.5, 26 1.0 27 ], 28 [ 29 10.0, 30 10.0, 31 0.0 32 ], 33 [ 34 10.01, 35 10.0, 36 0.0 37 ], 38 [ 39 10.0, 40 10.01, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 0, 52 2, 53 3 54 ], 55 [ 56 0, 57 1, 58 4 59 ], 60 [ 61 1, 62 2, 63 4 64 ], 65 [ 66 5, 67 6, 68 7 69 ] 70 ], 71 "metadata": { 72 "id": "Me921", 73 "schema_version": 0, 74 "defect_class": "disconnected_components", 75 "title": "keep_largest component_size_criterion: face_size >= threshold retains large component", 76 "assertions": [ 77 { 78 "kind": "triangle_not_reachable_from", 79 "target": 4, 80 "source": 0 81 }, 82 { 83 "kind": "triangle_area_lt", 84 "triangle": 4, 85 "lt": 0.001 86 } 87 ] 88 } 89}