mesh-examples/12-14-mesh/Me087.mesh.json
Sources
- MeshFix `checkAndRepair::checkConnectivity` Branch 11 (*NULL_TRIANGLE_EDGE*)
- `MESH_HEAL_COVERAGE.md`.
Description
the mesh contains a single triangle (v0,v1,v2) with no adjacent faces. In MeshFix's half-edge structure, each triangle must maintain pointers to all three of its edges; when a triangle is newly allocated or incompletely initialised, one or more edge pointers may be NULL. A single isolated triangle is the minimal case: all three of its edges are boundary edges (incidence 1) with no twin half-edge, and any partial half-edge setup would leave the boundary slots NULL.
Reproducer recipe
exactly 3 vertices; exactly 1 triangle; no other geometry.
Expected kernel behavior
detect open boundary; apply hole-filling if needed.
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 "triangles": [ 20 [ 21 0, 22 1, 23 2 24 ] 25 ], 26 "metadata": { 27 "id": "Me087", 28 "schema_version": 0, 29 "defect_class": "open_boundary", 30 "title": "connectivity null triangle edge: single isolated triangle \u2014 all 3 edges are boundary (incidence 1)", 31 "assertions": [ 32 { 33 "kind": "edge_shared_by_n_triangles", 34 "edge": [ 35 0, 36 1 37 ], 38 "n": 1 39 }, 40 { 41 "kind": "edge_shared_by_n_triangles", 42 "edge": [ 43 1, 44 2 45 ], 46 "n": 1 47 }, 48 { 49 "kind": "edge_shared_by_n_triangles", 50 "edge": [ 51 0, 52 2 53 ], 54 "n": 1 55 }, 56 { 57 "kind": "hole_boundary", 58 "loop": [ 59 0, 60 1, 61 2 62 ] 63 } 64 ] 65 } 66}