Me1101 — CreateTriangleFromVertices_over_constrained_e2: e2 already has 2 triangles; IS_BIT(e2,5) triggers edge duplication (Branch 2)

§12.14 mesh defects (sub-class: non-manifold-edge / over-constrained-e2)

topology

Sources

Description

edge (v1,v2) is incident on three triangles — both t1/t2 slots of e2 are occupied. t0=(v3,v1,v2) and t1=(v4,v1,v2) fill both slots; a third triangle t2=(v5,v1,v2) (out-of-plane apex v5) triggers IS_BIT(e2,5) → Branch 2. e1 of the target triangle is distinct and not over-constrained; only e2 fires. All other six edges are boundary (n=1 each).

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(1,1,0), v3=(2,0,0), v4=(0,1,0), v5=(1,0.5,1); t0=(v3,v1,v2), t1=(v4,v1,v2), t2=(v5,v1,v2); edge (v1,v2) n=3; all other edges n=1.

Expected kernel behavior

IS_BIT(e2,5) is true; CreateTriangleFromVertices duplicates e2 so the third triangle t2 gets an independent edge object; topological conflict on e2 is resolved.

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      2.0,
20      0.0,
21      0.0
22    ],
23    [
24      0.0,
25      1.0,
26      0.0
27    ],
28    [
29      1.0,
30      0.5,
31      1.0
32    ]
33  ],
34  "triangles": [
35    [
36      3,
37      1,
38      2
39    ],
40    [
41      4,
42      1,
43      2
44    ],
45    [
46      5,
47      1,
48      2
49    ]
50  ],
51  "metadata": {
52    "id": "Me1101",
53    "schema_version": 0,
54    "defect_class": "non_manifold_edge",
55    "title": "CreateTriangleFromVertices_over_constrained_e2: e2=(v1,v2) already has 2 triangles; IS_BIT(e2,5) triggers edge duplication (Branch 2)",
56    "assertions": [
57      {
58        "kind": "edge_shared_by_n_triangles",
59        "edge": [
60          1,
61          2
62        ],
63        "n": 3
64      },
65      {
66        "kind": "edge_shared_by_n_triangles",
67        "edge": [
68          1,
69          3
70        ],
71        "n": 1
72      },
73      {
74        "kind": "edge_shared_by_n_triangles",
75        "edge": [
76          2,
77          3
78        ],
79        "n": 1
80      },
81      {
82        "kind": "edge_shared_by_n_triangles",
83        "edge": [
84          1,
85          4
86        ],
87        "n": 1
88      },
89      {
90        "kind": "edge_shared_by_n_triangles",
91        "edge": [
92          2,
93          4
94        ],
95        "n": 1
96      },
97      {
98        "kind": "edge_shared_by_n_triangles",
99        "edge": [
100          1,
101          5
102        ],
103        "n": 1
104      },
105      {
106        "kind": "edge_shared_by_n_triangles",
107        "edge": [
108          2,
109          5
110        ],
111        "n": 1
112      }
113    ]
114  }
115}