mesh-examples/12-14-mesh/Me1092.mesh.json
Sources
- CGAL `PMP.remove_degenerate_faces` Branch 9 @ line 2319 (*connected-component-of-collinear-faces*: `for (face_descriptor fd : cc_faces) { ... boundary_hedges ... }`)
- `MESH_HEAL_COVERAGE.md`.
Description
five collinear vertices v0–v4 at x=0..4 form a 3-triangle degenerate strip: t0=(v0,v1,v2), t1=(v1,v3,v2), t2=(v2,v3,v4). Adjacent pairs share internal edges (v1,v2) and (v2,v3). Two clean anchor triangles t3,t4 bound the outer hull. CGAL collects cc_faces={t0,t1,t2} and walks `boundary_hedges` to attempt disk removal.
Reproducer recipe
v0=(0,0,0)..v4=(4,0,0) collinear; t0–t2 zero-area strip; clean t3=(v0,v4,v5), t4=(v4,v0,v6) with v5=(2,2,0), v6=(2,-2,0). Edge (v1,v2) n=2; (v2,v3) n=2; outer strip edges n=1.
Expected kernel behavior
collect cc_faces; walk boundary_hedges; attempt degenerate disk removal.
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 3.0, 20 0.0, 21 0.0 22 ], 23 [ 24 4.0, 25 0.0, 26 0.0 27 ], 28 [ 29 2.0, 30 2.0, 31 0.0 32 ], 33 [ 34 2.0, 35 -2.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 1, 47 3, 48 2 49 ], 50 [ 51 2, 52 3, 53 4 54 ], 55 [ 56 0, 57 4, 58 5 59 ], 60 [ 61 4, 62 0, 63 6 64 ] 65 ], 66 "metadata": { 67 "id": "Me1092", 68 "schema_version": 0, 69 "defect_class": "degenerate_triangle", 70 "title": "connected component of collinear faces: 3-triangle cc strip for disk removal", 71 "assertions": [ 72 { 73 "kind": "triangle_area_lt", 74 "triangle": 0, 75 "lt": 1e-12 76 }, 77 { 78 "kind": "triangle_area_lt", 79 "triangle": 1, 80 "lt": 1e-12 81 }, 82 { 83 "kind": "triangle_area_lt", 84 "triangle": 2, 85 "lt": 1e-12 86 }, 87 { 88 "kind": "edge_shared_by_n_triangles", 89 "edge": [ 90 1, 91 2 92 ], 93 "n": 2 94 }, 95 { 96 "kind": "edge_shared_by_n_triangles", 97 "edge": [ 98 2, 99 3 100 ], 101 "n": 2 102 }, 103 { 104 "kind": "edge_shared_by_n_triangles", 105 "edge": [ 106 0, 107 1 108 ], 109 "n": 1 110 }, 111 { 112 "kind": "edge_shared_by_n_triangles", 113 "edge": [ 114 3, 115 4 116 ], 117 "n": 1 118 } 119 ] 120 } 121}