mesh-examples/12-14-mesh/Me720.mesh.json
Sources
- MeshFix `Basic_TMesh.safeCoordBackApproximation` Branch 1 (*overlapping-edge detection*: `nos = 0
- for(e = (Edge *)T.EL.head()
- e != NULL
- e = e->next()) if(e->overlaps()) nos++
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Two coplanar triangles in the XY plane with no shared edges whose interiors overlap: large t0=(v0,v1,v2) with area=8.0, and smaller t1=(v3,v4,v5) with area=2.0 centred inside t0. After coordinate quantization, edges of t1 return true for overlaps() — Branch 1 fires as nos is incremented.
Reproducer recipe
v0=(0,0,0), v1=(4,0,0), v2=(2,4,0); v3=(1,1,0), v4=(3,1,0), v5=(2,3,0); t0=(v0,v1,v2), t1=(v3,v4,v5); all 6 edges n=1; triangles_self_intersect(t0,t1); triangle_area_lt(t1,3.0).
Expected kernel behavior
Branch 1 fires; nos is incremented for each edge of t1 that overlaps t0's interior.
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 4.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 4.0, 16 0.0 17 ], 18 [ 19 1.0, 20 1.0, 21 0.0 22 ], 23 [ 24 3.0, 25 1.0, 26 0.0 27 ], 28 [ 29 2.0, 30 3.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": "Me720", 48 "schema_version": 0, 49 "defect_class": "self_intersection_coplanar_overlap", 50 "title": "safeCoordBackApproximation overlapping-edge detection: coplanar triangles with overlapping interiors; nos counter incremented (Branch 1)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 1 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 1, 64 2 65 ], 66 "n": 1 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 2 73 ], 74 "n": 1 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 3, 80 4 81 ], 82 "n": 1 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 4, 88 5 89 ], 90 "n": 1 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 3, 96 5 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "triangles_self_intersect", 102 "triangles": [ 103 0, 104 1 105 ] 106 }, 107 { 108 "kind": "triangle_area_lt", 109 "triangle": 1, 110 "lt": 3.0 111 } 112 ] 113 } 114}