Me990 — orient_triangle_soup_with_reference_triangle_mesh concurrency_strategy: Sequential_tag / Parallel_tag dispatch before per-triangle orientation loop (Branch 1)

§12.14 mesh defects (sub-class: soup-orientation / concurrency-strategy)

topology

Sources

Description

Triangle soup of three faces over a flat quad region (vertices s0–s4 in XY plane), with soup_t2=(s4,s2,s3) wound CW (normal −Z, misoriented). Reference mesh of two consistently CCW triangles (r0–r3). The Concurrency_tag dispatch at line 280 fires for any non-empty soup before per-triangle orientation queries begin — Branch 1 executes. Adjacent soup triangles t1 and t2 share edge (s2,s4) but have antiparallel normals. Reference triangles share interior edge (r0,r2). Full mesh: V=9, E=12, F=5, χ=2.

Reproducer recipe

s0=(0,0,0), s1=(2,0,0), s2=(1,1,0), s3=(2,2,0), s4=(0,2,0); soup_t0=(s0,s1,s2) CCW, soup_t1=(s0,s2,s4) CCW, soup_t2=(s4,s2,s3) CW; r0=(0,0,0), r1=(2,0,0), r2=(2,2,0), r3=(0,2,0); ref_t0=(r0,r1,r2) CCW, ref_t1=(r0,r2,r3) CCW; assert_adjacent_triangles_inconsistent_winding(t1,t2); assert_edge_shared(r0,r2,2); assert_euler(9,12,5,2).

Expected kernel behavior

Branch 1 fires first (Concurrency_tag dispatch); subsequent AABB tree and closest-face queries orient soup_t2 to match reference +Z normal.

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      2.0,
10      0.0,
11      0.0
12    ],
13    [
14      1.0,
15      1.0,
16      0.0
17    ],
18    [
19      2.0,
20      2.0,
21      0.0
22    ],
23    [
24      0.0,
25      2.0,
26      0.0
27    ],
28    [
29      0.0,
30      0.0,
31      0.0
32    ],
33    [
34      2.0,
35      0.0,
36      0.0
37    ],
38    [
39      2.0,
40      2.0,
41      0.0
42    ],
43    [
44      0.0,
45      2.0,
46      0.0
47    ]
48  ],
49  "triangles": [
50    [
51      0,
52      1,
53      2
54    ],
55    [
56      0,
57      2,
58      4
59    ],
60    [
61      4,
62      2,
63      3
64    ],
65    [
66      5,
67      6,
68      7
69    ],
70    [
71      5,
72      7,
73      8
74    ]
75  ],
76  "metadata": {
77    "id": "Me990",
78    "schema_version": 0,
79    "defect_class": "soup_orientation_concurrency_strategy",
80    "title": "orient_triangle_soup_with_reference_triangle_mesh concurrency_strategy: Sequential_tag / Parallel_tag dispatch before per-triangle orientation loop (Branch 1)",
81    "assertions": [
82      {
83        "kind": "adjacent_triangles_inconsistent_winding",
84        "triangles": [
85          1,
86          2
87        ]
88      },
89      {
90        "kind": "edge_shared_by_n_triangles",
91        "edge": [
92          5,
93          7
94        ],
95        "n": 2
96      },
97      {
98        "kind": "euler_characteristic",
99        "v": 9,
100        "e": 12,
101        "f": 5,
102        "chi": 2
103      }
104    ]
105  }
106}