Me723 — Basic_TMesh.safeCoordBackApproximation convergence check: two independent overlapping pairs; nos decreases across iterations confirming nos<pnos progress (Branch 4)

§12.14 mesh defects (sub-class: self_intersection_coplanar_overlap / Basic_TMesh.safeCoordBackApproximation)

topology

Sources

Description

Four triangles in the XY plane forming two independent overlapping pairs. Pair A: t0=(v0,v1,v2) large (area=8) and t1=(v0,v1,v3) small (area=2) sharing edge (v0,v1), centred at x=0. Pair B: t2=(v4,v5,v6) large (area=8) and t3=(v4,v5,v7) small (area=2) sharing edge (v4,v5), centred at x=10. After one repair iteration one pair resolves: nos drops from 2 to 1, so nos<pnos and Branch 4 continues the loop.

Reproducer recipe

v0=(0,0,0), v1=(4,0,0), v2=(2,4,0), v3=(2,1,0); v4=(10,0,0), v5=(14,0,0), v6=(12,4,0), v7=(12,1,0); 4 triangles; each pair shares its edge (n=2); outer edges n=1; triangles_self_intersect(t0,t1) and triangles_self_intersect(t2,t3); triangle_area_lt(t1,3.0) and triangle_area_lt(t3,3.0).

Expected kernel behavior

Branch 4 fires; nos<pnos after first repair pass over pair A; the outer while-loop continues to address pair B.

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      4.0,
16      0.0
17    ],
18    [
19      2.0,
20      1.0,
21      0.0
22    ],
23    [
24      10.0,
25      0.0,
26      0.0
27    ],
28    [
29      14.0,
30      0.0,
31      0.0
32    ],
33    [
34      12.0,
35      4.0,
36      0.0
37    ],
38    [
39      12.0,
40      1.0,
41      0.0
42    ]
43  ],
44  "triangles": [
45    [
46      0,
47      1,
48      2
49    ],
50    [
51      0,
52      1,
53      3
54    ],
55    [
56      4,
57      5,
58      6
59    ],
60    [
61      4,
62      5,
63      7
64    ]
65  ],
66  "metadata": {
67    "id": "Me723",
68    "schema_version": 0,
69    "defect_class": "self_intersection_coplanar_overlap",
70    "title": "safeCoordBackApproximation convergence check: two independent overlapping pairs; nos decreases across iterations confirming nos<pnos progress (Branch 4)",
71    "assertions": [
72      {
73        "kind": "edge_shared_by_n_triangles",
74        "edge": [
75          0,
76          1
77        ],
78        "n": 2
79      },
80      {
81        "kind": "edge_shared_by_n_triangles",
82        "edge": [
83          1,
84          2
85        ],
86        "n": 1
87      },
88      {
89        "kind": "edge_shared_by_n_triangles",
90        "edge": [
91          0,
92          2
93        ],
94        "n": 1
95      },
96      {
97        "kind": "edge_shared_by_n_triangles",
98        "edge": [
99          1,
100          3
101        ],
102        "n": 1
103      },
104      {
105        "kind": "edge_shared_by_n_triangles",
106        "edge": [
107          0,
108          3
109        ],
110        "n": 1
111      },
112      {
113        "kind": "edge_shared_by_n_triangles",
114        "edge": [
115          4,
116          5
117        ],
118        "n": 2
119      },
120      {
121        "kind": "edge_shared_by_n_triangles",
122        "edge": [
123          5,
124          6
125        ],
126        "n": 1
127      },
128      {
129        "kind": "edge_shared_by_n_triangles",
130        "edge": [
131          4,
132          6
133        ],
134        "n": 1
135      },
136      {
137        "kind": "edge_shared_by_n_triangles",
138        "edge": [
139          5,
140          7
141        ],
142        "n": 1
143      },
144      {
145        "kind": "edge_shared_by_n_triangles",
146        "edge": [
147          4,
148          7
149        ],
150        "n": 1
151      },
152      {
153        "kind": "triangles_self_intersect",
154        "triangles": [
155          0,
156          1
157        ]
158      },
159      {
160        "kind": "triangles_self_intersect",
161        "triangles": [
162          2,
163          3
164        ]
165      },
166      {
167        "kind": "triangle_area_lt",
168        "triangle": 1,
169        "lt": 3.0
170      },
171      {
172        "kind": "triangle_area_lt",
173        "triangle": 3,
174        "lt": 3.0
175      }
176    ]
177  }
178}