mesh-examples/12-14-mesh/Me386.mesh.json
Sources
- MeshFix `Vertex.isDoubleFlat` Branch 7 (*misalignment_check*: `return !(e1->oppositeVertex(this)->exactMisalignment(this, e2->oppositeVertex(this)))`)
- `MESH_HEAL_COVERAGE.md`.
Description
Vertex v0=(0,0,0) has exactly 2 ridge edges in its 4-triangle closed fan. Ridge e1=(v0,v1) leads to opposite vertex v1=(-2,0,0); ridge e2=(v0,v2) leads to opposite vertex v2=(2,0,0). Both v1, v0, v2 lie on the x-axis — they are exactly collinear. exactMisalignment(v0,v2) returns false (no misalignment); Branch 7 returns !(false) = true. The vertex IS a valid DoubleFlat. The collinearity is confirmed by assert_vertex_on_edge(v0, v1, v2).
Reproducer recipe
v0=(0,0,0), v1=(-2,0,0), v2=(2,0,0), v3=(0,1,1), v4=(0,-1,1); t0=(v1,v3,v0), t1=(v3,v2,v0), t2=(v2,v4,v0), t3=(v4,v1,v0); v0 on segment v1-v2.
Expected kernel behavior
Two ridge edges found; opposite vertices v1 and v2 are collinear with v0; exactMisalignment=false; Branch 7 returns true (confirmed DoubleFlat vertex).
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 -2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 1.0 22 ], 23 [ 24 0.0, 25 -1.0, 26 1.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 1, 32 3, 33 0 34 ], 35 [ 36 3, 37 2, 38 0 39 ], 40 [ 41 2, 42 4, 43 0 44 ], 45 [ 46 4, 47 1, 48 0 49 ] 50 ], 51 "metadata": { 52 "id": "Me386", 53 "schema_version": 0, 54 "defect_class": "double_flat_vertex_collinear_axis", 55 "title": "isDoubleFlat_misalignment_check: v0 collinear with opposite vertices v1 and v2; exactMisalignment=false \u2192 Branch 7 returns true (DoubleFlat confirmed)", 56 "assertions": [ 57 { 58 "kind": "vertex_on_edge", 59 "vertex": 0, 60 "edge": [ 61 1, 62 2 63 ] 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 0, 69 1 70 ], 71 "n": 2 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 0, 77 2 78 ], 79 "n": 2 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 0, 85 3 86 ], 87 "n": 2 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 0, 93 4 94 ], 95 "n": 2 96 }, 97 { 98 "kind": "edge_shared_by_n_triangles", 99 "edge": [ 100 1, 101 3 102 ], 103 "n": 1 104 }, 105 { 106 "kind": "edge_shared_by_n_triangles", 107 "edge": [ 108 2, 109 3 110 ], 111 "n": 1 112 }, 113 { 114 "kind": "edge_shared_by_n_triangles", 115 "edge": [ 116 2, 117 4 118 ], 119 "n": 1 120 }, 121 { 122 "kind": "edge_shared_by_n_triangles", 123 "edge": [ 124 1, 125 4 126 ], 127 "n": 1 128 } 129 ] 130 } 131}