mesh-examples/12-14-mesh/Me150.mesh.json
Sources
- MeshFix `Basic_TMesh.flipNormals` Branch 1 (*triangle_invert_guard*: `!IS_BIT(t,6)`)
- `MESH_HEAL_COVERAGE.md`.
Description
A single isolated CW triangle in the XY plane. Its normal points in the -Z direction (inward). flipNormals dequeues it, checks bit 6 is clear (Branch 1 fires), inverts the winding, and marks bit 6.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0); triangle (v0,v2,v1) — CW ordering gives normal -Z.
Expected kernel behavior
flipNormals inverts triangle winding when bit 6 is unset.
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 2, 23 1 24 ] 25 ], 26 "metadata": { 27 "id": "Me150", 28 "schema_version": 0, 29 "defect_class": "inverted_normals", 30 "title": "flipNormals_triangle_invert_guard: seed triangle has bit 6 clear, CW winding inverted", 31 "assertions": [ 32 { 33 "kind": "triangle_normal_z_negative", 34 "triangle": 0 35 }, 36 { 37 "kind": "edge_shared_by_n_triangles", 38 "edge": [ 39 0, 40 2 41 ], 42 "n": 1 43 }, 44 { 45 "kind": "edge_shared_by_n_triangles", 46 "edge": [ 47 1, 48 2 49 ], 50 "n": 1 51 }, 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 1 59 } 60 ] 61 } 62}