mesh-examples/12-14-mesh/Me1121.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 7 @ line 2161 (*containment-envelope-enforcement*: `if (containment_epsilon > 0) { Polyhedral_envelope envelope(…)
- … }`)
- `MESH_HEAL_COVERAGE.md`.
Description
a 2×1 flat rectangular patch in the z=0 plane (4 triangles: tris 0–3) represents the base surface with its containment envelope. An intruder triangle (tri 4) self-intersects tri 0: vertices v6=(0.5,0.3,0.4) and v7=(1.0,0.3,0.4) are above the patch, while v8=(0.75,0.3,-0.4) pokes below z=0. Any repair patch generated for this SI must lie within containment_epsilon of the original surface; the below-z vertex triggers the envelope-rejection branch. Interior patch edges (v1,v4), (v0,v4), (v1,v5) are manifold (n=2); boundary edges are open (n=1).
Reproducer recipe
v0–v5 tile 2×1 rect; t0=(v0,v1,v4), t1=(v0,v4,v3), t2=(v1,v2,v5), t3=(v1,v5,v4); intruder t4=(v6,v7,v8) with v8 at z=-0.4. assert triangles_self_intersect(0,4); assert interior edges n=2.
Expected kernel behavior
detect SI (tri 0 vs tri 4); attempt patch repair; construct Polyhedral_envelope from patch; reject candidate repair that places any vertex at z<-epsilon; escalate to next strategy.
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 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 1.0, 25 1.0, 26 0.0 27 ], 28 [ 29 2.0, 30 1.0, 31 0.0 32 ], 33 [ 34 0.5, 35 0.3, 36 0.4 37 ], 38 [ 39 1.0, 40 0.3, 41 0.4 42 ], 43 [ 44 0.75, 45 0.3, 46 -0.4 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 4 54 ], 55 [ 56 0, 57 4, 58 3 59 ], 60 [ 61 1, 62 2, 63 5 64 ], 65 [ 66 1, 67 5, 68 4 69 ], 70 [ 71 6, 72 7, 73 8 74 ] 75 ], 76 "metadata": { 77 "id": "Me1121", 78 "schema_version": 0, 79 "defect_class": "self_intersection_envelope_violation", 80 "title": "patch vs containment envelope: intruder pokes below z=0 patch (containment_epsilon branch)", 81 "assertions": [ 82 { 83 "kind": "triangles_self_intersect", 84 "triangles": [ 85 0, 86 4 87 ] 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 1, 93 4 94 ], 95 "n": 2 96 }, 97 { 98 "kind": "edge_shared_by_n_triangles", 99 "edge": [ 100 0, 101 4 102 ], 103 "n": 2 104 }, 105 { 106 "kind": "edge_shared_by_n_triangles", 107 "edge": [ 108 1, 109 5 110 ], 111 "n": 2 112 }, 113 { 114 "kind": "vertex_pair_distance_lt", 115 "pair": [ 116 6, 117 7 118 ], 119 "lt": 1.0 120 } 121 ] 122 } 123}