mesh-examples/12-14-mesh/Me1123.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 9 @ line 2196 (*constraint-preservation-mode*: `if (constrain_sharp_edges) { smooth(…, strong_dihedral_angle)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
triangles 0 (floor, z=0 plane) and 1 (wall, x=1 plane) share edge (v1,v2) at exactly 90° dihedral — a strong feature crease well above the strong_dihedral_angle threshold (≈150°). Triangle 2 is an intruder with apex v4 at z=-0.4, crossing the floor face (tri 0). Branch 9 fires because the repair region contains the sharp crease edge (v1,v2): constrain_sharp_edges=true locks (v1,v2) during smoothing to prevent the 90° corner from flattening. Outer edges of floor and wall are boundary (n=1).
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(1,1,0); floor t0=(v0,v1,v2); wall apex v3=(1,0.5,1); wall t1=(v1,v2,v3); crease (v1,v2) n=2; intruder t2=(v4,v5,v6) with v4=(0.4,0.4,-0.4), v5=(0.2,0.1,0.5), v6=(0.6,0.1,0.5).
Expected kernel behavior
detect SI between floor and intruder; identify crease edge (v1,v2) at 90° as a constraint; invoke constrained smoothing that preserves the right-angle corner.
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 1.0, 20 0.5, 21 1.0 22 ], 23 [ 24 0.4, 25 0.4, 26 -0.4 27 ], 28 [ 29 0.2, 30 0.1, 31 0.5 32 ], 33 [ 34 0.6, 35 0.1, 36 0.5 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 1, 47 2, 48 3 49 ], 50 [ 51 4, 52 5, 53 6 54 ] 55 ], 56 "metadata": { 57 "id": "Me1123", 58 "schema_version": 0, 59 "defect_class": "self_intersection_sharp_crease", 60 "title": "SI adjacent to 90-degree crease edge: constrain_sharp_edges preserves right-angle feature", 61 "assertions": [ 62 { 63 "kind": "triangles_self_intersect", 64 "triangles": [ 65 0, 66 2 67 ] 68 }, 69 { 70 "kind": "edge_shared_by_n_triangles", 71 "edge": [ 72 1, 73 2 74 ], 75 "n": 2 76 }, 77 { 78 "kind": "edge_shared_by_n_triangles", 79 "edge": [ 80 0, 81 1 82 ], 83 "n": 1 84 }, 85 { 86 "kind": "edge_shared_by_n_triangles", 87 "edge": [ 88 0, 89 2 90 ], 91 "n": 1 92 }, 93 { 94 "kind": "edge_shared_by_n_triangles", 95 "edge": [ 96 1, 97 3 98 ], 99 "n": 1 100 }, 101 { 102 "kind": "edge_shared_by_n_triangles", 103 "edge": [ 104 2, 105 3 106 ], 107 "n": 1 108 } 109 ] 110 } 111}