mesh-examples/12-14-mesh/Me851.mesh.json
Sources
- CGAL PMP `PMP.does_bound_a_volume` Branch 2 (*orientation_inconsistent*: after is_closed passes, orientation test fails)
- `MESH_HEAL_COVERAGE.md`.
Description
Closed tetrahedron (4 vertices, 4 faces, all edges n=2) with three lateral faces wound CCW (normals outward) and base face (v0,v2,v1) wound CW. The CW base produces a normal pointing inward (-Z direction): n=(v2-v0)×(v1-v0)=(0,0,-1). Lateral face t0=(v0,v1,v3) at shared edge (v0,v1) has outward normal; dot product with base normal is negative → antiparallel → inconsistent winding. is_closed passes (chi=2); orientation check fails → Branch 2 fires. Euler: V=4, E=6, F=4, chi=2.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(0.5,0.5,1); lateral CCW: (v0,v1,v3),(v1,v2,v3),(v0,v3,v2); base CW: (v0,v2,v1); all 6 edges n=2; triangle_normal_z_negative(3); adjacent_triangles_inconsistent_winding(0,3); euler V=4,E=6,F=4,chi=2.
Expected kernel behavior
Branch 2 fires; is_closed passes; PMP orientation check detects CW base face producing antiparallel normal at shared edge; does_bound_a_volume returns false.
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 1, 28 3 29 ], 30 [ 31 1, 32 2, 33 3 34 ], 35 [ 36 0, 37 3, 38 2 39 ], 40 [ 41 0, 42 2, 43 1 44 ] 45 ], 46 "metadata": { 47 "id": "Me851", 48 "schema_version": 0, 49 "defect_class": "inconsistent_face_orientation", 50 "title": "does_bound_a_volume orientation_inconsistent: closed tetrahedron; base wound CW; adjacent normals antiparallel; orientation check fails (Branch 2)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 2 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 1, 64 2 65 ], 66 "n": 2 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 2 73 ], 74 "n": 2 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 0, 80 3 81 ], 82 "n": 2 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 1, 88 3 89 ], 90 "n": 2 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 2, 96 3 97 ], 98 "n": 2 99 }, 100 { 101 "kind": "triangle_normal_z_negative", 102 "triangle": 3 103 }, 104 { 105 "kind": "adjacent_triangles_inconsistent_winding", 106 "triangles": [ 107 0, 108 3 109 ] 110 }, 111 { 112 "kind": "euler_characteristic", 113 "v": 4, 114 "e": 6, 115 "f": 4, 116 "chi": 2 117 } 118 ] 119 } 120}