mesh-examples/12-14-mesh/Me991.mesh.json
Sources
- CGAL PMP `PMP.orient_triangle_soup_with_reference_triangle_mesh` Branch 2 (*aabb_tree_construction*: AABB_tree over reference faces @ line 300)
- `MESH_HEAL_COVERAGE.md`.
Description
Reference mesh of two spatially separated triangles spanning x=[0,3], y=[0,3], z=[0,1] (ref_t0 at z=0, ref_t1 at z=1) — clear bounding volume for AABB tree internal node construction. Soup of two triangles at z=0.5 between the reference layers; soup_t1=(s3,s5,s4) is wound CW (normal −Z, defect). Branch 2 fires when the AABB_tree constructor processes the non-empty reference face list. Full mesh: V=12, E=12, F=4, χ=4 (four disjoint triangle groups).
Reproducer recipe
r0–r2 at z=0 CCW, r3–r5 at z=1 CCW; s0=(0,0,.5), s1=(2,0,.5), s2=(0,2,.5) soup_t0 CCW; s3=(1,0,.5), s4=(3,0,.5), s5=(1,3,.5) soup_t1 CW; assert_triangle_normal_z_negative(3); assert_edge_shared(r0,r1,1); assert_edge_shared(r3,r4,1); euler(12,12,4,4).
Expected kernel behavior
Branch 2 fires when reference mesh has ≥1 face; AABB_tree builds bounding-box nodes over ref_t0 and ref_t1; closest_point_and_primitive returns ref_t0 or ref_t1 for each soup face query.
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 3.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0, 15 3.0, 16 0.0 17 ], 18 [ 19 0.0, 20 0.0, 21 1.0 22 ], 23 [ 24 3.0, 25 0.0, 26 1.0 27 ], 28 [ 29 0.0, 30 3.0, 31 1.0 32 ], 33 [ 34 0.0, 35 0.0, 36 0.5 37 ], 38 [ 39 2.0, 40 0.0, 41 0.5 42 ], 43 [ 44 0.0, 45 2.0, 46 0.5 47 ], 48 [ 49 1.0, 50 0.0, 51 0.5 52 ], 53 [ 54 3.0, 55 0.0, 56 0.5 57 ], 58 [ 59 1.0, 60 3.0, 61 0.5 62 ] 63 ], 64 "triangles": [ 65 [ 66 0, 67 1, 68 2 69 ], 70 [ 71 3, 72 4, 73 5 74 ], 75 [ 76 6, 77 7, 78 8 79 ], 80 [ 81 9, 82 11, 83 10 84 ] 85 ], 86 "metadata": { 87 "id": "Me991", 88 "schema_version": 0, 89 "defect_class": "soup_orientation_aabb_tree_construction", 90 "title": "orient_triangle_soup_with_reference_triangle_mesh aabb_tree_construction: AABB tree built from non-empty reference mesh with clear bounding box (Branch 2)", 91 "assertions": [ 92 { 93 "kind": "triangle_normal_z_negative", 94 "triangle": 3 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 0, 100 1 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 3, 108 4 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "euler_characteristic", 114 "v": 12, 115 "e": 12, 116 "f": 4, 117 "chi": 4 118 } 119 ] 120 } 121}