mesh-examples/12-14-mesh/Me286.mesh.json
Sources
- MeshFix `checkAndRepair::checkGeometry` Branch 7 (*DEGENERATE_TRIANGLE_FLAT_ANGLE*: `ang == M_PI`)
- `MESH_HEAL_COVERAGE.md`.
Description
Triangle t1=(q0,q1,q2) with q0=(0,-1,0), q1=(1,-1,0), q2=(2,-1,0) — all collinear along y=-1. The pivot vertex is q1 at the MIDDLE of the collinear triple. Vectors from q1 to q0=(-1,0,0) and from q1 to q2=(+1,0,0) are anti-parallel. The interior angle at q1 = arccos(-1) = π = 180°. Area is exactly zero. This distinguishes the "flat" (π) branch from the "zero" (0) branch (Me285).
Reproducer recipe
c0-c2 clean triangle (t0); q0=(0,-1,0), q1=(1,-1,0), q2=(2,-1,0) collinear with q1 in MIDDLE (t1); assert triangle_area_lt(1, 1e-12).
Expected kernel behavior
Branch 7 fires; defect logged as 'ang == M_PI'; function returns q1 as defect vertex.
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 0.5, 15 1.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 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 3, 42 4, 43 5 44 ] 45 ], 46 "metadata": { 47 "id": "Me286", 48 "schema_version": 0, 49 "defect_class": "degenerate_triangle", 50 "title": "checkGeometry_degenerate_triangle_flat_angle: interior angle = 180\u00b0 (pi) at pivot vertex (Branch 7)", 51 "assertions": [ 52 { 53 "kind": "triangle_area_lt", 54 "triangle": 1, 55 "lt": 1e-12 56 } 57 ] 58 } 59}