mesh-examples/12-14-mesh/Me198.mesh.json
Sources
- MeshFix `Basic_TMesh.splitTriangle` Branch 9 (*mask_copy_nt2*: `nt2->mask = t->mask`)
- `MESH_HEAL_COVERAGE.md`.
Description
When copy_mask is set, original triangle t's mask bits are also copied to nt2. Symmetric to Branch 8 but for the second child. Geometry uses an even larger triangle (area=6.0); each child ~2.0, confirmed by triangle_area_lt < 4.0.
Reproducer recipe
v0=(0,0,0), v1=(4,0,0), v2=(2,3,0), nv=(2,1.2,0); t=(v0,v1,nv), nt1=(nv,v2,v0), nt2=(nv,v1,v2).
Expected kernel behavior
nt2->mask = t->mask when copy_mask flag is set.
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 4.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 3.0, 16 0.0 17 ], 18 [ 19 2.0, 20 1.2, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 3 29 ], 30 [ 31 3, 32 2, 33 0 34 ], 35 [ 36 3, 37 1, 38 2 39 ] 40 ], 41 "metadata": { 42 "id": "Me198", 43 "schema_version": 0, 44 "defect_class": "split_triangle_mask_propagation", 45 "title": "splitTriangle_mask_copy_nt2: mask propagated from original t to second new child nt2", 46 "assertions": [ 47 { 48 "kind": "triangle_area_lt", 49 "triangle": 2, 50 "lt": 4.0 51 }, 52 { 53 "kind": "triangle_area_lt", 54 "triangle": 0, 55 "lt": 4.0 56 }, 57 { 58 "kind": "triangle_area_lt", 59 "triangle": 1, 60 "lt": 4.0 61 }, 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 0, 66 3 67 ], 68 "n": 2 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 1, 74 3 75 ], 76 "n": 2 77 }, 78 { 79 "kind": "edge_shared_by_n_triangles", 80 "edge": [ 81 2, 82 3 83 ], 84 "n": 2 85 }, 86 { 87 "kind": "edge_shared_by_n_triangles", 88 "edge": [ 89 0, 90 1 91 ], 92 "n": 1 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 0, 98 2 99 ], 100 "n": 1 101 }, 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 1, 106 2 107 ], 108 "n": 1 109 } 110 ] 111 } 112}