mesh-examples/12-14-mesh/Me911.mesh.json
Sources
- MeshFix `di_cell.selectIntersections` Branch 2 (*Proper vs improper intersection*: `!t->intersects(s, justproper) → continue`)
- `MESH_HEAL_COVERAGE.md`.
Description
Three-triangle mesh demonstrating both sides of the justproper branch. t0=(v0=(0,0,0), v1=(1,1,0), v2=(2,0,0)) is a flat hub in the XY plane. t1=(v2,v3=(3,1,0),v4=(4,0,0)) shares only vertex v2 with t0 — a touching-only (improper) contact; their interiors are disjoint. t2=(v5=(1,0.3,-1), v6=(1,0.3,1), v7=(4,0,0)) has edge (v5,v6) passing through t0's interior at (1,0.3,0) — a proper transverse crossing. With justproper=true, (t0,t1) is skipped (improper); (t0,t2) is collected (proper). Branch 2 discriminates these two cases.
Reproducer recipe
v0=(0,0,0), v1=(1,1,0), v2=(2,0,0), v3=(3,1,0), v4=(4,0,0), v5=(1,0.3,-1), v6=(1,0.3,1), v7=(4,0,0); t0=(v0,v1,v2), t1=(v2,v3,v4), t2=(v5,v6,v7); assert_triangles_do_not_intersect(0,1); assert_triangles_self_intersect(0,2).
Expected kernel behavior
Branch 2 fires for (t0,t1): justproper=true, touching-only → continue; (t0,t2) passes: transverse → collected as SI.
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 1.0, 11 0.0 12 ], 13 [ 14 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 3.0, 20 1.0, 21 0.0 22 ], 23 [ 24 4.0, 25 0.0, 26 0.0 27 ], 28 [ 29 1.0, 30 0.3, 31 -1.0 32 ], 33 [ 34 1.0, 35 0.3, 36 1.0 37 ], 38 [ 39 4.0, 40 0.0, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 2, 52 3, 53 4 54 ], 55 [ 56 5, 57 6, 58 7 59 ] 60 ], 61 "metadata": { 62 "id": "Me911", 63 "schema_version": 0, 64 "defect_class": "shared_vertex_adjacent_faces", 65 "title": "di_cell.selectIntersections proper-vs-improper: shared-vertex touching pair is improper (justproper=true skips); transverse pair is proper (Branch 2)", 66 "assertions": [ 67 { 68 "kind": "vertex_pair_no_shared_triangle", 69 "pair": [ 70 0, 71 3 72 ] 73 }, 74 { 75 "kind": "vertex_pair_no_shared_triangle", 76 "pair": [ 77 1, 78 4 79 ] 80 }, 81 { 82 "kind": "vertex_pair_no_shared_triangle", 83 "pair": [ 84 0, 85 5 86 ] 87 }, 88 { 89 "kind": "vertex_pair_no_shared_triangle", 90 "pair": [ 91 1, 92 6 93 ] 94 }, 95 { 96 "kind": "triangles_do_not_intersect", 97 "triangles": [ 98 0, 99 1 100 ] 101 }, 102 { 103 "kind": "triangles_self_intersect", 104 "triangles": [ 105 0, 106 2 107 ] 108 } 109 ] 110 } 111}