mesh-examples/12-14-mesh/Me1153.mesh.json
Sources
- CGAL PMP `PMP.is_degenerate_triangle_face` Branch 1 (*collinear*: cross-product of edge vectors is zero-length → area==0 → return true @ line 300)
- `MESH_HEAL_COVERAGE.md`.
Description
A single triangle (v0,v1,v2) with all three vertices on the x-axis: v0=(0,0,0), v1=(1,0,0), v2=(2,0,0). The cross product (v1-v0)×(v2-v0) = (1,0,0)×(2,0,0) = (0,0,0); area is exactly zero. PMP.is_degenerate_triangle_face fires Branch 1 immediately. The middle vertex v1 lies exactly on the segment v0→v2.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(2,0,0); t0=(v0,v1,v2); assert_triangle_area_lt(t0,1e-9); assert_vertex_on_edge(v1,v0,v2).
Expected kernel behavior
Branch 1 fires; cross product is zero; function returns true (triangle is degenerate).
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 "triangles": [ 20 [ 21 0, 22 1, 23 2 24 ] 25 ], 26 "metadata": { 27 "id": "Me1153", 28 "schema_version": 0, 29 "defect_class": "degenerate_triangle", 30 "title": "is_degenerate_triangle_face collinear: zero-area triangle; all three vertices collinear on x-axis", 31 "assertions": [ 32 { 33 "kind": "triangle_area_lt", 34 "triangle": 0, 35 "lt": 1e-09 36 }, 37 { 38 "kind": "vertex_on_edge", 39 "vertex": 1, 40 "edge": [ 41 0, 42 2 43 ] 44 } 45 ] 46 } 47}