mesh-examples/12-14-mesh/Me271.mesh.json
Sources
- CGAL PMP `autorefine_impl::autorefine_triangle_soup` Branch 2 (*p.first==p.second*: `if(p.first == p.second)` → tag as degenerate @ line 1055)
- `MESH_HEAL_COVERAGE.md`.
Description
One collinear (zero-area) triangle whose degenerate bounding box causes the AABB query to return a (f,f) self-pair. Branch 2 detects that both face descriptors in the pair are identical and marks the face as is_degen, excluding it from subsequent intersection-point computation. A second well-formed triangle is included as a reference.
Reproducer recipe
t0=(v0,v1,v2) with three collinear points (area=0); t1=(v3,v4,v5) valid control triangle; assert triangle_area_lt(t0, 1e-9); assert triangles_do_not_intersect([0,1]).
Expected kernel behavior
Branch 2 fires; (f0,f0) self-pair detected; t0 marked is_degen; excluded from refinement pipeline.
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 5.0, 20 0.0, 21 0.0 22 ], 23 [ 24 6.0, 25 1.0, 26 0.0 27 ], 28 [ 29 5.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": "Me271", 48 "schema_version": 0, 49 "defect_class": "autorefine_degenerate_face_tag", 50 "title": "autorefine_triangle_soup degenerate-face-tagging: (f,f) self-pair \u2192 is_degen flag", 51 "assertions": [ 52 { 53 "kind": "triangle_area_lt", 54 "triangle": 0, 55 "lt": 1e-09 56 }, 57 { 58 "kind": "triangles_do_not_intersect", 59 "triangles": [ 60 0, 61 1 62 ] 63 } 64 ] 65 } 66}