mesh-examples/12-14-mesh/Me007.mesh.json
Sources
- `MESH_DEFECT_TAXONOMY.md` #14 (`inverted_normals`)
- CGAL `is_outward_oriented`, `orient_to_bound_a_volume`
- MeshFix `forceNormalConsistence`.
Description
a closed tetrahedron whose four faces are all wound clockwise when viewed from outside. The mesh is topologically valid and manifold, but every face normal points inward; the implied signed volume is negative. CGAL `is_outward_oriented` returns False; `orient_to_bound_a_volume` must flip all faces.
Reproducer recipe
standard tetrahedron with vertices at `(0,0,0), (1,0,0), (0.5,1,0), (0.5,0.5,1)`; every face has its last two vertices swapped relative to CCW order, so all normals point inward.
Expected kernel behavior
detect inward orientation via signed-volume test and flip all faces; never treat an inward-wound mesh as a valid solid.
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": "Me007", 48 "schema_version": 0, 49 "defect_class": "inverted_normals", 50 "title": "inverted normals: tetrahedron with all faces wound inward (CW)", 51 "assertions": [ 52 { 53 "kind": "triangle_normal_z_negative", 54 "triangle": 0 55 } 56 ] 57 } 58}