mesh-examples/12-14-mesh/Me801.mesh.json
Sources
- CGAL PMP `PMP.is_polygon_soup_a_polygon_mesh` Branch 2 (*non_manifold_edge*: `if(it->second.size() > 2){ ...
- marked_edges.insert(edge)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Three triangles all sharing edge (v0, v1). After the index-duplicate check passes for each polygon, the validator builds an edge-to-polygon map. Edge (v0,v1) is incident on all three triangles — exceeding the manifold maximum of two — so it is inserted into marked_edges as a singular (non-manifold) edge. Each triangle fans to a distinct apex (v2 above XZ, v3 below XZ, v4 out of plane) so the non-manifold edge is the only defect.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(0.5,-1,0), v4=(0.5,0,1); t0=(v0,v1,v2), t1=(v0,v1,v3), t2=(v0,v1,v4); assert_edge_shared(v0,v1,3).
Expected kernel behavior
Branch 2 fires; edge (v0,v1) is inserted into marked_edges; is_polygon_soup_a_polygon_mesh returns false (or reports non-manifold) for this soup.
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.5, 20 -1.0, 21 0.0 22 ], 23 [ 24 0.5, 25 0.0, 26 1.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 1, 38 3 39 ], 40 [ 41 0, 42 1, 43 4 44 ] 45 ], 46 "metadata": { 47 "id": "Me801", 48 "schema_version": 0, 49 "defect_class": "non_manifold_edge", 50 "title": "is_polygon_soup_a_polygon_mesh non_manifold_edge: edge (v0,v1) shared by 3 triangles marks edge singular (Branch 2)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 3 59 } 60 ] 61 } 62}