mesh-examples/12-14-mesh/Me119.mesh.json
Sources
- MeshFix `Triangle.intersects` Branch 1 (*INTERSECTION_MODE_PROPER*: `if (justproper)`)
- `MESH_HEAL_COVERAGE.md`.
Description
v3=(1,0,0) — the first vertex of t1 — lies exactly on the midpoint of edge (v0,v1) of t0 (T-junction geometry). In non-justproper mode this contact is an improper intersection detected by the coplanar-fallback 2D SAT. In justproper mode Branch 1 gates whether endpoint-only touches count; strict interior crossings are not present here, so justproper=true would return false. The fixture captures the T-junction geometry that activates the Branch 1 decision.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0). v3=(1,0,0) [midpoint of v0→v1], v4=(0,2,0), v5=(2,2,0). t0=(v0,v1,v2), t1=(v3,v4,v5).
Expected kernel behavior
in default (non-justproper) mode, flag as improper intersection; in justproper mode skip.
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 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 2.0, 16 0.0 17 ], 18 [ 19 1.0, 20 0.0, 21 0.0 22 ], 23 [ 24 0.0, 25 2.0, 26 0.0 27 ], 28 [ 29 2.0, 30 2.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": "Me119", 48 "schema_version": 0, 49 "defect_class": "mesh_tjunction_vertex_on_edge", 50 "title": "intersects_proper_mode_endpoint_touch: T-junction vertex on edge \u2014 improper touching contact", 51 "assertions": [ 52 { 53 "kind": "vertex_on_edge", 54 "vertex": 3, 55 "edge": [ 56 0, 57 1 58 ] 59 }, 60 { 61 "kind": "triangles_self_intersect", 62 "triangles": [ 63 0, 64 1 65 ] 66 } 67 ] 68 } 69}