Me013 — boundary gap (thin): two patches share near-coincident boundary displaced by 2e-7

§12.14 mesh defects (sub-class: precision/gap)

spec-violation

Sources

Description

patch A (faces 0-1) and patch B (faces 2-3) share a boundary that should be welded along x=1. The boundary vertices on patch B (`v4, v5`) are displaced from their counterparts on patch A (`v1, v2`) by 2e-7 in X — half the typical CAD tolerance of 1e-6 — leaving a topological crack. Each patch has an open boundary cycle incident to only one face.

Reproducer recipe

patch A uses vertices `(0,0,0),(1,0,0),(1,1,0),(0,1,0)`; patch B uses vertices `(1+2e-7,0,0),(1+2e-7,1,0),(2,0,0),(2,1,0)`. Boundary edges `(v1,v2)` and `(v4,v5)` are 2e-7 apart.

Expected kernel behavior

snap eps-coincident boundary vertices together and stitch the boundary cycles into a watertight seam.

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      1.0,
15      1.0,
16      0.0
17    ],
18    [
19      0.0,
20      1.0,
21      0.0
22    ],
23    [
24      1.0000002,
25      0.0,
26      0.0
27    ],
28    [
29      1.0000002,
30      1.0,
31      0.0
32    ],
33    [
34      2.0,
35      0.0,
36      0.0
37    ],
38    [
39      2.0,
40      1.0,
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      4,
57      6,
58      7
59    ],
60    [
61      4,
62      7,
63      5
64    ]
65  ],
66  "metadata": {
67    "id": "Me013",
68    "schema_version": 0,
69    "defect_class": "boundary_gap_thin",
70    "title": "boundary gap (thin): two patches share near-coincident boundary displaced by 2e-7",
71    "assertions": [
72      {
73        "kind": "vertex_pair_distance_lt",
74        "pair": [
75          1,
76          4
77        ],
78        "lt": 1e-06
79      },
80      {
81        "kind": "vertex_pair_distance_lt",
82        "pair": [
83          2,
84          5
85        ],
86        "lt": 1e-06
87      },
88      {
89        "kind": "edge_shared_by_n_triangles",
90        "edge": [
91          1,
92          2
93        ],
94        "n": 1
95      },
96      {
97        "kind": "edge_shared_by_n_triangles",
98        "edge": [
99          4,
100          5
101        ],
102        "n": 1
103      }
104    ]
105  }
106}