mesh-examples/12-14-mesh/Me157.mesh.json
Sources
- MeshFix `Basic_TMesh.flipNormals` Branch 8 (*flip_propagation_guard*: `IS_BIT(t,6)`)
- `MESH_HEAL_COVERAGE.md`.
Description
A fully-inverted closed tetrahedron. All four faces are CW. After pass 1 flips all faces (bit 6 set on each), pass 2 iterates over all triangles; Branch 8 fires for each (bit 6 set) and enqueues neighbors for bit-clearing.
Reproducer recipe
standard tetrahedron v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(0.5,0.5,1); all four faces wound CW.
Expected kernel behavior
pass 2 fires Branch 8 for each triangle that has bit 6 set; enqueues neighbors for cleanup.
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 0.5, 21 1.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 2, 28 1 29 ], 30 [ 31 0, 32 3, 33 2 34 ], 35 [ 36 0, 37 1, 38 3 39 ], 40 [ 41 1, 42 2, 43 3 44 ] 45 ], 46 "metadata": { 47 "id": "Me157", 48 "schema_version": 0, 49 "defect_class": "inverted_normals", 50 "title": "flipNormals_flip_propagation_guard: second-pass cleanup iterates already-flipped triangles", 51 "assertions": [ 52 { 53 "kind": "triangle_normal_z_negative", 54 "triangle": 0 55 }, 56 { 57 "kind": "edge_shared_by_n_triangles", 58 "edge": [ 59 0, 60 1 61 ], 62 "n": 2 63 }, 64 { 65 "kind": "edge_shared_by_n_triangles", 66 "edge": [ 67 0, 68 2 69 ], 70 "n": 2 71 }, 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 3 77 ], 78 "n": 2 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 1, 84 2 85 ], 86 "n": 2 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 1, 92 3 93 ], 94 "n": 2 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 2, 100 3 101 ], 102 "n": 2 103 } 104 ] 105 } 106}