Me1122 — local smoothing on SI-bearing CC only: treat_all_CCs=false skips clean CC-B

§12.14 mesh defects (sub-class: self-intersection/smoothing-local)

units

Sources

Description

two connected components. CC-A (tris 0,1,2) contains a self-intersecting intruder (tri 2) whose apex v4 is displaced to z=-0.5 below the flat base patch (tris 0,1 in z=0). CC-B (tris 3,4) is a clean flat quad 25 units away with no SI. Branch 8 conditions smoothing on internal SI presence: CC-A has self_intersects=true so do_smooth=true; CC-B has self_intersects=false so do_smooth=treat_all_CCs (false when treat_all_CCs=false). The two-CC layout ensures both arms of the branch fire in a single mesh.

Reproducer recipe

CC-A = tri 0=(v0,v1,v2), tri 1=(v1,v3,v2) sharing edge (v1,v2); intruder tri 2=(v4,v5,v6) with v4=(0.5,0.5,-0.5) crossing tri 0. CC-B = quad at y=25 (tris 3,4) with interior edge (v7,v9) n=2.

Expected kernel behavior

detect internal SI in CC-A; set do_smooth=true for CC-A; skip CC-B smoothing when treat_all_CCs=false; apply vertex smoothing to displace v4 back above z=0.

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.5,
15      1.0,
16      0.0
17    ],
18    [
19      1.5,
20      1.0,
21      0.0
22    ],
23    [
24      0.5,
25      0.5,
26      -0.5
27    ],
28    [
29      0.2,
30      0.5,
31      0.6
32    ],
33    [
34      0.8,
35      0.5,
36      0.6
37    ],
38    [
39      0.0,
40      25.0,
41      0.0
42    ],
43    [
44      1.0,
45      25.0,
46      0.0
47    ],
48    [
49      1.0,
50      26.0,
51      0.0
52    ],
53    [
54      0.0,
55      26.0,
56      0.0
57    ]
58  ],
59  "triangles": [
60    [
61      0,
62      1,
63      2
64    ],
65    [
66      1,
67      3,
68      2
69    ],
70    [
71      4,
72      5,
73      6
74    ],
75    [
76      7,
77      8,
78      9
79    ],
80    [
81      7,
82      9,
83      10
84    ]
85  ],
86  "metadata": {
87    "id": "Me1122",
88    "schema_version": 0,
89    "defect_class": "self_intersection_smoothing_local",
90    "title": "local smoothing on SI-bearing CC only: treat_all_CCs=false skips clean CC-B",
91    "assertions": [
92      {
93        "kind": "triangles_self_intersect",
94        "triangles": [
95          0,
96          2
97        ]
98      },
99      {
100        "kind": "edge_shared_by_n_triangles",
101        "edge": [
102          1,
103          2
104        ],
105        "n": 2
106      },
107      {
108        "kind": "triangle_not_reachable_from",
109        "target": 3,
110        "source": 0
111      },
112      {
113        "kind": "edge_shared_by_n_triangles",
114        "edge": [
115          7,
116          9
117        ],
118        "n": 2
119      }
120    ]
121  }
122}