mesh-examples/12-14-mesh/Me1183.mesh.json
Sources
- CGAL PMP `merge_duplicate_points_in_polygon_soup` / `Polygon_mesh_processing::stitch_borders`
- naive STL/OBJ per-triangle vertex duplication
- `MESH_HEAL_COVERAGE.md`.
Description
A polygon soup of a box corner where three planar triangular patches (XY, YZ, XZ plane) join at the origin. Each patch was exported with its own separate vertex records, so the single geometric corner point (0,0,0) is stored as THREE distinct vertices (indices 0, 3, 6), and every shared boundary is represented twice — once per neighbouring patch. Because the indices differ, the half-edge structure never pairs the un-welded seams: each seam segment is incident on only one triangle, leaving three open cracks radiating from the corner. This is the >2-coincident-vertex generalization of the near-coincident-vertex pair (Me003, Me281): a single position occupied by more than two distinct vertices that a pairwise snap must collapse to one before the cracks can be stitched. Distinct from the two-patch B-rep analog Twi037 by the three-way corner multiplicity and the mesh oracle tier.
Reproducer recipe
patch XY = (0,0,0),(1,0,0),(0,1,0); patch YZ = (0,0,0),(0,1,0),(0,0,1); patch XZ = (0,0,0),(0,0,1),(1,0,0); one corner triangle per patch, un-welded; corner copies 0,3,6 all at (0,0,0); +x seam segments (0,1)≡(6,8); +z seam segments (3,5)≡(6,7).
Expected kernel behavior
recognize the three-vertex coincident cluster at (0,0,0) (multiplicity > 2) and merge all three copies into a single vertex; detect and stitch the un-welded seam segment pairs; result is a watertight three-patch corner with each seam segment incident on two triangles.
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.0, 15 1.0, 16 0.0 17 ], 18 [ 19 0.0, 20 0.0, 21 0.0 22 ], 23 [ 24 0.0, 25 1.0, 26 0.0 27 ], 28 [ 29 0.0, 30 0.0, 31 1.0 32 ], 33 [ 34 0.0, 35 0.0, 36 0.0 37 ], 38 [ 39 0.0, 40 0.0, 41 1.0 42 ], 43 [ 44 1.0, 45 0.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 3, 57 4, 58 5 59 ], 60 [ 61 6, 62 7, 63 8 64 ] 65 ], 66 "metadata": { 67 "id": "Me1183", 68 "schema_version": 0, 69 "defect_class": "multi_vertex_seam_crack", 70 "title": "polygon-soup box corner: three coincident-but-distinct copies of the shared corner vertex leave un-welded seam cracks (multi-vertex seam)", 71 "assertions": [ 72 { 73 "kind": "vertex_pair_distance_lt", 74 "pair": [ 75 0, 76 3 77 ], 78 "lt": 1e-09 79 }, 80 { 81 "kind": "vertex_pair_distance_lt", 82 "pair": [ 83 3, 84 6 85 ], 86 "lt": 1e-09 87 }, 88 { 89 "kind": "vertex_pair_distance_lt", 90 "pair": [ 91 0, 92 6 93 ], 94 "lt": 1e-09 95 }, 96 { 97 "kind": "vertex_pair_no_shared_triangle", 98 "pair": [ 99 0, 100 3 101 ] 102 }, 103 { 104 "kind": "vertex_pair_no_shared_triangle", 105 "pair": [ 106 3, 107 6 108 ] 109 }, 110 { 111 "kind": "vertex_pair_no_shared_triangle", 112 "pair": [ 113 0, 114 6 115 ] 116 }, 117 { 118 "kind": "edge_pair_coincident", 119 "edge_a": [ 120 0, 121 1 122 ], 123 "edge_b": [ 124 6, 125 8 126 ], 127 "eps": 1e-09 128 }, 129 { 130 "kind": "edge_shared_by_n_triangles", 131 "edge": [ 132 0, 133 1 134 ], 135 "n": 1 136 }, 137 { 138 "kind": "edge_shared_by_n_triangles", 139 "edge": [ 140 6, 141 8 142 ], 143 "n": 1 144 }, 145 { 146 "kind": "edge_pair_coincident", 147 "edge_a": [ 148 3, 149 5 150 ], 151 "edge_b": [ 152 6, 153 7 154 ], 155 "eps": 1e-09 156 }, 157 { 158 "kind": "edge_shared_by_n_triangles", 159 "edge": [ 160 3, 161 5 162 ], 163 "n": 1 164 }, 165 { 166 "kind": "edge_shared_by_n_triangles", 167 "edge": [ 168 6, 169 7 170 ], 171 "n": 1 172 } 173 ] 174 } 175}