Me276 — autorefine_triangle_soup coplanarity-tracking: coplanar pair → coplanar_triangles (Branch 7)

§12.14 mesh defects (sub-class: autorefine_coplanar_tracking / coplanar-flag)

spec-violation

Sources

Description

Two coplanar triangles in z=0 with a T-junction overlap. After computing intersection, Branch 7 detects coplanarity and records the pair in coplanar_triangles for downstream special handling. The coplanarity flag is separate from the nbi switch: this fixture tags the coplanar pair while branches 3-6 handle point counts.

Reproducer recipe

t0 and t1 coplanar in z=0 with T-junction; assert triangles_self_intersect([0,1]); vertex_pair_distance_lt([0,3], 10.0) confirms proximity.

Expected kernel behavior

Branch 7 fires; triangles_are_coplanar is true; pair inserted into coplanar_triangles for deferred coplanar splitting logic.

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      2.0,
16      0.0
17    ],
18    [
19      0.5,
20      0.5,
21      0.0
22    ],
23    [
24      2.5,
25      0.5,
26      0.0
27    ],
28    [
29      1.5,
30      2.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      3,
42      4,
43      5
44    ]
45  ],
46  "metadata": {
47    "id": "Me276",
48    "schema_version": 0,
49    "defect_class": "autorefine_coplanar_tracking",
50    "title": "autorefine_triangle_soup coplanarity-tracking: coplanar pair \u2192 coplanar_triangles",
51    "assertions": [
52      {
53        "kind": "triangles_self_intersect",
54        "triangles": [
55          0,
56          1
57        ]
58      },
59      {
60        "kind": "vertex_pair_distance_lt",
61        "pair": [
62          0,
63          3
64        ],
65        "lt": 10.0
66      }
67    ]
68  }
69}