mesh-examples/12-14-mesh/Me1100.mesh.json
Sources
- MeshFix `Basic_TMesh.CreateTriangleFromVertices` Branch 1 (*OVER_CONSTRAINED_EDGE*) @ line 263 (`if (IS_BIT(e1, 5)) { ... }`)
- `MESH_HEAL_COVERAGE.md`.
Description
edge (v0,v1) is incident on three triangles — a non-manifold over-constrained configuration. t0=(v0,v1,v2) and t1=(v0,v1,v3) fill both t1/t2 slots of e1. When a third triangle t2=(v0,v1,v4) (out-of-plane apex v4) attempts to use the same edge as e1, IS_BIT(e1,5) fires (Branch 1) and CreateTriangleFromVertices duplicates e1 to avoid topological conflict. All other six edges are boundary (n=1 each).
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); edge (v0,v1) n=3; all other edges n=1.
Expected kernel behavior
IS_BIT(e1,5) is true; CreateTriangleFromVertices calls CreateEdge to duplicate e1 so t2 obtains a separate edge object; the non-manifold slot conflict is resolved before triangle creation proceeds.
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": "Me1100", 48 "schema_version": 0, 49 "defect_class": "non_manifold_edge", 50 "title": "CreateTriangleFromVertices_over_constrained_e1: e1=(v0,v1) already has 2 triangles; IS_BIT(e1,5) triggers edge duplication (Branch 1)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 3 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 0, 64 2 65 ], 66 "n": 1 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 1, 72 2 73 ], 74 "n": 1 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 0, 80 3 81 ], 82 "n": 1 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 1, 88 3 89 ], 90 "n": 1 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 0, 96 4 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "edge_shared_by_n_triangles", 102 "edge": [ 103 1, 104 4 105 ], 106 "n": 1 107 } 108 ] 109 } 110}