mesh-examples/12-14-mesh/Me1154.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 10 @ line 2207 (*smoothing-fallback-escalation*: `if (!fixed_by_smoothing) { smooth(…, constrain_sharp_edges=false)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
a 4-triangle cross-shaped floor (tris 0–3, all in z=0) with two wall triangles (tris 4,5) rising at 90° from interior floor edges. Tri 4 (wall A) shares edge (v1,v4) with the floor; this edge is also shared by floor tris 0 and 2, making it non-manifold (n=3). An intruder triangle (tri 6) has apex v7 at z=-0.5 directly below the floor centre, crossing tri 0. Branch 9 (constrained smoothing) cannot resolve the SI because the non-manifold crease locks all adjacent vertices; Branch 10 fires when fixed_by_smoothing remains false — re-running without sharp-edge constraints allows v7 to be lifted above z=0.
Reproducer recipe
v0=(0,1,0), v1=(1,0,0), v2=(1,2,0), v3=(2,1,0), v4=(1,1,0) — floor vertices; t0=(v0,v1,v4), t1=(v0,v4,v2), t2=(v1,v3,v4), t3=(v4,v3,v2); wall-A t4=(v1,v4,v5) with v5=(1,0.5,1); wall-B t5=(v4,v2,v6) with v6=(1,1.5,1); intruder t6=(v7,v8,v9) with v7=(0.5,0.7,-0.5), v8=(0.2,0.4,0.5), v9=(0.8,0.4,0.5).
Expected kernel behavior
detect SI (tri 0 vs tri 6); attempt constrained smoothing (Branch 9); detect fixed_by_smoothing=false due to non-manifold crease; escalate to unconstrained fallback (Branch 10); resolve SI by relaxing constraints.
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.5, 15 1.0, 16 0.0 17 ], 18 [ 19 10.0, 20 0.0, 21 0.0 22 ], 23 [ 24 11.0, 25 0.0, 26 0.0 27 ], 28 [ 29 10.5, 30 1.0, 31 0.0 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": "Me1154", 48 "schema_version": 0, 49 "defect_class": "disconnected_components", 50 "title": "keep_connected_components by_face_range: face-range iteration; two-component mesh with face-range selection of component A", 51 "assertions": [ 52 { 53 "kind": "triangle_not_reachable_from", 54 "target": 1, 55 "source": 0 56 }, 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 0, 61 1 62 ], 63 "n": 1 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 1, 69 2 70 ], 71 "n": 1 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 0, 77 2 78 ], 79 "n": 1 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 3, 85 4 86 ], 87 "n": 1 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 4, 93 5 94 ], 95 "n": 1 96 }, 97 { 98 "kind": "edge_shared_by_n_triangles", 99 "edge": [ 100 3, 101 5 102 ], 103 "n": 1 104 }, 105 { 106 "kind": "euler_characteristic", 107 "v": 6, 108 "e": 6, 109 "f": 2, 110 "chi": 2 111 } 112 ] 113 } 114}