mesh-examples/12-14-mesh/Me1132.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 13 @ line 2069 (*bounding-box-obb-transform-applicability*)
- `MESH_HEAL_COVERAGE.md`.
Description
a diamond-shaped mesh (4 triangles fan around center, rotated 45 degrees so principal axes are diagonal) lies in the z=0 plane with vertices at cardinal diagonals (distance sqrt(2) from center). An intruder triangle (tri 4) pierces the NE quadrant (tri 0) by passing through its centroid. Because the mesh is not axis-aligned, an axis-aligned bounding box is substantially larger than the oriented bounding box. When CGAL_PMP_REPAIR_SI_USE_OBB is enabled, remove_self_intersections computes oriented_bounding_box and Aff_transformation to align the mesh with its principal axes before compactifying the SI region.
Reproducer recipe
center v0=(0,0,0); cardinal diagonal vertices at (sqrt2,0,0), (0,sqrt2,0), (-sqrt2,0,0), (0,-sqrt2,0); 4 quadrant triangles; 1 intruder at NE centroid spanning z=+/-1.
Expected kernel behavior
detect non-axis-aligned orientation; compute oriented_bounding_box; apply Aff_transformation; proceed with OBB-compactified SI region.
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.4142135623730951, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0, 15 1.4142135623730951, 16 0.0 17 ], 18 [ 19 -1.4142135623730951, 20 0.0, 21 0.0 22 ], 23 [ 24 0.0, 25 -1.4142135623730951, 26 0.0 27 ], 28 [ 29 0.47140452079103173, 30 0.47140452079103173, 31 1.0 32 ], 33 [ 34 0.47140452079103173, 35 0.47140452079103173, 36 -1.0 37 ], 38 [ 39 1.4714045207910318, 40 0.47140452079103173, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 0, 52 2, 53 3 54 ], 55 [ 56 0, 57 3, 58 4 59 ], 60 [ 61 0, 62 4, 63 1 64 ], 65 [ 66 5, 67 6, 68 7 69 ] 70 ], 71 "metadata": { 72 "id": "Me1132", 73 "schema_version": 0, 74 "defect_class": "self_intersection_obb_transform", 75 "title": "SI in 45-degree-rotated diamond mesh: OBB Aff_transformation branch", 76 "assertions": [ 77 { 78 "kind": "triangles_self_intersect", 79 "triangles": [ 80 0, 81 4 82 ] 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 0, 88 2 89 ], 90 "n": 2 91 } 92 ] 93 } 94}