Twi298 — Two NON-ADJACENT wire edges share a large (>50%) collinear overlap, forcing the 3-edge reconstruction path

§12.3b wires / loops / edges (sub-class: edge overlap, large/non-adjacent)

P2 — spec deviation (no data loss)

topology

Sources

Description

Twi063 already covers a small (<50%, and reached via a degenerate quasi-adjacent connector) collinear overlap between two edges of one `EDGE_LOOP`. This fixture makes the overlap large (90% of each edge's own length) AND puts three ordinary closure edges between the overlapping pair on EACH side of the cyclic wire — genuinely non-adjacent, not merely separated by one degenerate connector — forcing the large-overlap branch, which must reconstruct multiple edges sharing the overlap segment rather than a simple two-edge cut.

Reproducer recipe

`ADVANCED_FACE` on a `PLANE`; `EDGE_LOOP` of 8 `EDGE_CURVE`s: `large_overlap_edge_a` `(0,0,0)→(10,0,0)`, a 3-edge detour up-and-over to `(11,0,0)`, `large_overlap_edge_b` `(1,0,0)→(11,0,0)` reversed (same underlying `LINE` direction as edge_a, overlapping `[1,10]` — 90% of each edge's own length), a 3-edge detour back down to `(0,0,0)`.

Expected kernel behavior

reconstruct the edges sharing the overlap segment (pre-overlap remainder, shared overlap segment, post-overlap remainder) per the overlap-reconstruction pass::FixSelfIntersectWire`'s large-overlap branch, or reject as malformed.

Notes

**See also**: Twi063 (the small-overlap, quasi-adjacent sibling of this mechanism). Verified live: OCCT 7.8.1 does NOT collapse the pair back down to a clean merged wire the way it does for Twi063 (`n_edges_total==5`, down from 6 declared, `brepcheck.valid==True`). Here, with the overlap genuinely large AND the two edges genuinely non-adjacent, OCCT instead SPLITS both edges at the junction parameters (1 and 10) — `n_edges_total` comes back as **10** (up from 8 declared: two ~1-unit remainder edges plus two ~9-unit segments spanning the shared `[1,10]` overlap, kept as separate coincident edges rather than merged into one shared edge) — and `brepcheck.valid` comes back **False** (`face[0].area≈-1.0`, a self-intersecting/invalid result). A clearly different, and clearly worse, outcome than Twi063's, confirming a distinct handling path is exercised for the large/non-adjacent case. Synonyms: "large collinear overlap forces reconstruction", "non-adjacent edges 90 percent overlap", "three edge reconstruction overlap segment", "wire split at overlap junction invalid", "collinear overlap exceeds 50 percent threshold". Provenance tier: bytes-sufficient.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(19) ifc=schema_n/a

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Byte assertions

Tier-3 assertions

Cross-references

Twi063

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi298: ADVANCED_FACE on a PLANE; EDGE_LOOP with 8 EDGE_CURVEs; 'large_overlap_edge_a' runs (0,0,0)->(10,0,0) along the X-axis (length 10); 'large_overlap_edge_b' runs (1,0,0)->(11,0,0) along the SAME X-axis (length 10); their interiors overlap over [1,10] -- 9 out of each edge's own 10-unit length, i.e. 90%, well above the 50% large-overlap threshold; edge_a and edge_b are separated by THREE ordinary closure edges on EACH side of the cyclic wire (an up-across-down detour to (11,0,0) on one side, a down-across-up detour back to (0,0,0) on the other) -- genuinely non-adjacent, not merely separated by one degenerate connector (Twi063's pattern); ShapeFix_IntersectionTool::FixSelfIntersectWire must reconstruct THREE edges sharing the overlap segment (pre-overlap remainder, shared overlap segment, post-overlap remainder) rather than a simple two-edge cut; the overlapping pair IS wired into EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi298'),'2;1');
5FILE_NAME('Twi298.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=PLANE('',#4);
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(10.0,0.0,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(1.0,0.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(11.0,0.0,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(0.0,0.0,0.0));
24#15=DIRECTION('',(1.0,0.0,0.0));
25#16=VECTOR('',#15,10.0);
26#17=LINE('',#14,#16);
27#18=EDGE_CURVE('large_overlap_edge_a',#7,#9,#17,.T.);
28#19=ORIENTED_EDGE('',$,$,#18,.T.);
29#20=CARTESIAN_POINT('',(1.0,0.0,0.0));
30#21=DIRECTION('',(1.0,0.0,0.0));
31#22=VECTOR('',#21,10.0);
32#23=LINE('',#20,#22);
33#24=EDGE_CURVE('large_overlap_edge_b',#11,#13,#23,.T.);
34#25=CARTESIAN_POINT('',(10.0,3.0,0.0));
35#26=VERTEX_POINT('',#25);
36#27=CARTESIAN_POINT('',(11.0,3.0,0.0));
37#28=VERTEX_POINT('',#27);
38#29=CARTESIAN_POINT('',(10.0,0.0,0.0));
39#30=DIRECTION('',(0.0,1.0,0.0));
40#31=VECTOR('',#30,3.0);
41#32=LINE('',#29,#31);
42#33=EDGE_CURVE('',#9,#26,#32,.T.);
43#34=CARTESIAN_POINT('',(10.0,3.0,0.0));
44#35=DIRECTION('',(1.0,0.0,0.0));
45#36=VECTOR('',#35,1.0);
46#37=LINE('',#34,#36);
47#38=EDGE_CURVE('',#26,#28,#37,.T.);
48#39=CARTESIAN_POINT('',(11.0,3.0,0.0));
49#40=DIRECTION('',(0.0,-1.0,0.0));
50#41=VECTOR('',#40,3.0);
51#42=LINE('',#39,#41);
52#43=EDGE_CURVE('',#28,#13,#42,.T.);
53#44=CARTESIAN_POINT('',(1.0,-2.0,0.0));
54#45=VERTEX_POINT('',#44);
55#46=CARTESIAN_POINT('',(0.0,-2.0,0.0));
56#47=VERTEX_POINT('',#46);
57#48=CARTESIAN_POINT('',(1.0,0.0,0.0));
58#49=DIRECTION('',(0.0,-1.0,0.0));
59#50=VECTOR('',#49,2.0);
60#51=LINE('',#48,#50);
61#52=EDGE_CURVE('',#11,#45,#51,.T.);
62#53=CARTESIAN_POINT('',(1.0,-2.0,0.0));
63#54=DIRECTION('',(-1.0,0.0,0.0));
64#55=VECTOR('',#54,1.0);
65#56=LINE('',#53,#55);
66#57=EDGE_CURVE('',#45,#47,#56,.T.);
67#58=CARTESIAN_POINT('',(0.0,-2.0,0.0));
68#59=DIRECTION('',(0.0,1.0,0.0));
69#60=VECTOR('',#59,2.0);
70#61=LINE('',#58,#60);
71#62=EDGE_CURVE('',#47,#7,#61,.T.);
72#63=ORIENTED_EDGE('',$,$,#33,.T.);
73#64=ORIENTED_EDGE('',$,$,#38,.T.);
74#65=ORIENTED_EDGE('',$,$,#43,.T.);
75#66=ORIENTED_EDGE('',$,$,#24,.F.);
76#67=ORIENTED_EDGE('',$,$,#52,.T.);
77#68=ORIENTED_EDGE('',$,$,#57,.T.);
78#69=ORIENTED_EDGE('',$,$,#62,.T.);
79#70=EDGE_LOOP('',(#19,#63,#64,#65,#66,#67,#68,#69));
80#71=FACE_OUTER_BOUND('',#70,.T.);
81#72=ADVANCED_FACE('',(#71),#5,.T.);
82#73=OPEN_SHELL('',(#72));
83#74=SHELL_BASED_SURFACE_MODEL('',(#73));
84#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
85#9051=PRODUCT('Twi298','Twi298','',(#9050));
86#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
87#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
88#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
89#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
90#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
91#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
92#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
93#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
94#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
95#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74),#9060);
96#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
97ENDSEC;
98END-ISO-10303-21;