mesh-examples/12-14-mesh/Me100.mesh.json
Sources
- MeshFix `Basic_TMesh.unlinkTriangle` Branch 1 (*vertex_manifold_check_v1*: `if (v1->isOnBoundary())`)
- `MESH_HEAL_COVERAGE.md`.
Description
vertex 1 is flagged as a boundary vertex (its link ring is open), yet both edges incident on v1 in the target triangle t0 are interior (each shared by two triangles). This non-manifold singularity means unlinking t0 would leave v1 in an invalid state; Branch 1 detects the inconsistency and schedules v1 for duplication.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(2,0,0), v3=(1,1,0), v4=(2,1,0). t0=(v0,v1,v2), t1=(v1,v4,v2), t2=(v0,v3,v1), t3=(v1,v3,v4). Edges (v0,v1) and (v1,v2) each shared by 2 triangles; open ring at v1 (gap at (v3,v0)).
Expected kernel behavior
detect v1 non-manifold singularity; duplicate v1 before performing the triangle 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 1.0, 20 1.0, 21 0.0 22 ], 23 [ 24 2.0, 25 1.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 1, 37 4, 38 2 39 ], 40 [ 41 0, 42 3, 43 1 44 ], 45 [ 46 1, 47 3, 48 4 49 ] 50 ], 51 "metadata": { 52 "id": "Me100", 53 "schema_version": 0, 54 "defect_class": "unlink_vertex_manifold_v1", 55 "title": "unlink_triangle_v1_boundary_non_manifold: v1 on boundary but both incident edges non-boundary", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 1, 61 2 62 ], 63 "n": 2 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 0, 69 1 70 ], 71 "n": 2 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 0, 77 2 78 ], 79 "n": 1 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 0, 85 3 86 ], 87 "n": 1 88 } 89 ] 90 } 91}