Tfa130 — ADVANCED_FACE encoded with TWO disjoint FACE_OUTER_BOUND wires (not outer+inner) is split by the reader into two separate topological faces (7 faces total, not 6) — not a 'wrong wire selected as outer' heuristic bug; small-area-wire repair is never reached

§12.3c

topology

Sources

Description

ADVANCED_FACE encoded with TWO disjoint FACE_OUTER_BOUND wires (not outer+inner) is split by the reader into two separate topological faces (7 faces total, not 6) — not a 'wrong wire selected as outer' heuristic bug; small-area-wire repair is never reached

Reproducer recipe

Expected kernel behavior

When one face declares two closed wires that bound disjoint regions of the same surface — here two `FACE_OUTER_BOUND`s, a 20×20 loop and a disjoint 0.2×0.2 loop — classify the wires by point-in-face containment, build one face per outer wire, assign each hole wire to the outer wire that contains it, and replace the original face with the resulting group. Report the split explicitly: returning more faces than the file declares, with nothing to say so, leaves every downstream face count silently wrong.

Notes

Corrected 2026-07-17 (truth-in-labeling audit): retitled/redescribed — original claimed small-area-wire repair's area-sorted-list heuristic incorrectly selects the tiny loop as outer; live-oracle confirms the reader instead builds both `FACE_OUTER_BOUND` wires as separate topological faces (`n_faces_total == 7`, already correctly asserted below) — a translator-level dual-outer-bound dispatch behavior, not an area-heuristic selection bug. Part of the ~127-entry face-repair/small-face-check misnomer family — see `BACKLOG.md` Q14. Synonyms: "dual FACE_OUTER_BOUND splits into two faces", "two disjoint outer bounds on one host surface become two faces".

Expected validation

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

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tfa130: CLOSED_SHELL: top face (z=1) carries two FACE_OUTER_BOUND loops — a large 20×20 loop (area=400) and a tiny 0.2×0.2 loop (area=0.04) placed disjoint from the large loop; FixSmallAreaWire area-sorted-list heuristic processes ascending order and incorrectly selects the tiny loop as the outer boundary; defect IS on live CLOSED_SHELL traversal path */
3HEADER;
4FILE_DESCRIPTION(('Tfa130'),'2;1');
5FILE_NAME('Tfa130.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=CARTESIAN_POINT('',(20.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(20.0,20.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,20.0,0.0));
14#5=CARTESIAN_POINT('',(0.0,0.0,1.0));
15#6=CARTESIAN_POINT('',(20.0,0.0,1.0));
16#7=CARTESIAN_POINT('',(20.0,20.0,1.0));
17#8=CARTESIAN_POINT('',(0.0,20.0,1.0));
18#9=VERTEX_POINT('',#1);
19#10=VERTEX_POINT('',#2);
20#11=VERTEX_POINT('',#3);
21#12=VERTEX_POINT('',#4);
22#13=VERTEX_POINT('',#5);
23#14=VERTEX_POINT('',#6);
24#15=VERTEX_POINT('',#7);
25#16=VERTEX_POINT('',#8);
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=VECTOR('',#17,20.0);
28#19=LINE('',#1,#18);
29#20=EDGE_CURVE('',#9,#10,#19,.T.);
30#21=DIRECTION('',(0.0,1.0,0.0));
31#22=VECTOR('',#21,20.0);
32#23=LINE('',#2,#22);
33#24=EDGE_CURVE('',#10,#11,#23,.T.);
34#25=DIRECTION('',(-1.0,0.0,0.0));
35#26=VECTOR('',#25,20.0);
36#27=LINE('',#3,#26);
37#28=EDGE_CURVE('',#11,#12,#27,.T.);
38#29=DIRECTION('',(0.0,-1.0,0.0));
39#30=VECTOR('',#29,20.0);
40#31=LINE('',#4,#30);
41#32=EDGE_CURVE('',#12,#9,#31,.T.);
42#33=DIRECTION('',(1.0,0.0,0.0));
43#34=VECTOR('',#33,20.0);
44#35=LINE('',#5,#34);
45#36=EDGE_CURVE('',#13,#14,#35,.T.);
46#37=DIRECTION('',(0.0,1.0,0.0));
47#38=VECTOR('',#37,20.0);
48#39=LINE('',#6,#38);
49#40=EDGE_CURVE('',#14,#15,#39,.T.);
50#41=DIRECTION('',(-1.0,0.0,0.0));
51#42=VECTOR('',#41,20.0);
52#43=LINE('',#7,#42);
53#44=EDGE_CURVE('',#15,#16,#43,.T.);
54#45=DIRECTION('',(0.0,-1.0,0.0));
55#46=VECTOR('',#45,20.0);
56#47=LINE('',#8,#46);
57#48=EDGE_CURVE('',#16,#13,#47,.T.);
58#49=DIRECTION('',(0.0,0.0,1.0));
59#50=VECTOR('',#49,1.0);
60#51=LINE('',#1,#50);
61#52=EDGE_CURVE('',#9,#13,#51,.T.);
62#53=DIRECTION('',(0.0,0.0,1.0));
63#54=VECTOR('',#53,1.0);
64#55=LINE('',#2,#54);
65#56=EDGE_CURVE('',#10,#14,#55,.T.);
66#57=DIRECTION('',(0.0,0.0,1.0));
67#58=VECTOR('',#57,1.0);
68#59=LINE('',#3,#58);
69#60=EDGE_CURVE('',#11,#15,#59,.T.);
70#61=DIRECTION('',(0.0,0.0,1.0));
71#62=VECTOR('',#61,1.0);
72#63=LINE('',#4,#62);
73#64=EDGE_CURVE('',#12,#16,#63,.T.);
74#65=ORIENTED_EDGE('',$,$,#20,.T.);
75#66=ORIENTED_EDGE('',$,$,#24,.T.);
76#67=ORIENTED_EDGE('',$,$,#28,.T.);
77#68=ORIENTED_EDGE('',$,$,#32,.T.);
78#69=EDGE_LOOP('',(#65,#66,#67,#68));
79#70=DIRECTION('',(0.0,0.0,-1.0));
80#71=DIRECTION('',(1.0,0.0,0.0));
81#72=AXIS2_PLACEMENT_3D('',#1,#70,#71);
82#73=FACE_OUTER_BOUND('',#69,.T.);
83#74=PLANE('',#72);
84#75=ADVANCED_FACE('',(#73),#74,.T.);
85#76=ORIENTED_EDGE('',$,$,#36,.T.);
86#77=ORIENTED_EDGE('',$,$,#40,.T.);
87#78=ORIENTED_EDGE('',$,$,#44,.T.);
88#79=ORIENTED_EDGE('',$,$,#48,.T.);
89#80=EDGE_LOOP('',(#76,#77,#78,#79));
90#81=CARTESIAN_POINT('',(25.0,25.0,1.0));
91#82=CARTESIAN_POINT('',(25.2,25.0,1.0));
92#83=CARTESIAN_POINT('',(25.2,25.2,1.0));
93#84=CARTESIAN_POINT('',(25.0,25.2,1.0));
94#85=VERTEX_POINT('',#81);
95#86=VERTEX_POINT('',#82);
96#87=VERTEX_POINT('',#83);
97#88=VERTEX_POINT('',#84);
98#89=DIRECTION('',(1.0,0.0,0.0));
99#90=VECTOR('',#89,0.2);
100#91=LINE('',#81,#90);
101#92=EDGE_CURVE('',#85,#86,#91,.T.);
102#93=DIRECTION('',(0.0,1.0,0.0));
103#94=VECTOR('',#93,0.2);
104#95=LINE('',#82,#94);
105#96=EDGE_CURVE('',#86,#87,#95,.T.);
106#97=DIRECTION('',(-1.0,0.0,0.0));
107#98=VECTOR('',#97,0.2);
108#99=LINE('',#83,#98);
109#100=EDGE_CURVE('',#87,#88,#99,.T.);
110#101=DIRECTION('',(0.0,-1.0,0.0));
111#102=VECTOR('',#101,0.2);
112#103=LINE('',#84,#102);
113#104=EDGE_CURVE('',#88,#85,#103,.T.);
114#105=ORIENTED_EDGE('',$,$,#92,.T.);
115#106=ORIENTED_EDGE('',$,$,#96,.T.);
116#107=ORIENTED_EDGE('',$,$,#100,.T.);
117#108=ORIENTED_EDGE('',$,$,#104,.T.);
118#109=EDGE_LOOP('',(#105,#106,#107,#108));
119#110=DIRECTION('',(0.0,0.0,1.0));
120#111=DIRECTION('',(1.0,0.0,0.0));
121#112=AXIS2_PLACEMENT_3D('',#5,#110,#111);
122#113=FACE_OUTER_BOUND('',#109,.T.);
123#114=FACE_OUTER_BOUND('',#80,.T.);
124#115=PLANE('',#112);
125#116=ADVANCED_FACE('',(#113,#114),#115,.T.);
126#117=ORIENTED_EDGE('',$,$,#20,.T.);
127#118=ORIENTED_EDGE('',$,$,#56,.T.);
128#119=ORIENTED_EDGE('',$,$,#36,.F.);
129#120=ORIENTED_EDGE('',$,$,#52,.F.);
130#121=EDGE_LOOP('',(#117,#118,#119,#120));
131#122=DIRECTION('',(0.0,-1.0,0.0));
132#123=DIRECTION('',(1.0,0.0,0.0));
133#124=AXIS2_PLACEMENT_3D('',#1,#122,#123);
134#125=FACE_OUTER_BOUND('',#121,.T.);
135#126=PLANE('',#124);
136#127=ADVANCED_FACE('',(#125),#126,.T.);
137#128=ORIENTED_EDGE('',$,$,#64,.T.);
138#129=ORIENTED_EDGE('',$,$,#44,.F.);
139#130=ORIENTED_EDGE('',$,$,#60,.F.);
140#131=ORIENTED_EDGE('',$,$,#28,.F.);
141#132=EDGE_LOOP('',(#128,#129,#130,#131));
142#133=DIRECTION('',(0.0,1.0,0.0));
143#134=DIRECTION('',(1.0,0.0,0.0));
144#135=AXIS2_PLACEMENT_3D('',#4,#133,#134);
145#136=FACE_OUTER_BOUND('',#132,.T.);
146#137=PLANE('',#135);
147#138=ADVANCED_FACE('',(#136),#137,.T.);
148#139=ORIENTED_EDGE('',$,$,#52,.T.);
149#140=ORIENTED_EDGE('',$,$,#48,.F.);
150#141=ORIENTED_EDGE('',$,$,#64,.F.);
151#142=ORIENTED_EDGE('',$,$,#32,.F.);
152#143=EDGE_LOOP('',(#139,#140,#141,#142));
153#144=DIRECTION('',(-1.0,0.0,0.0));
154#145=DIRECTION('',(0.0,1.0,0.0));
155#146=AXIS2_PLACEMENT_3D('',#1,#144,#145);
156#147=FACE_OUTER_BOUND('',#143,.T.);
157#148=PLANE('',#146);
158#149=ADVANCED_FACE('',(#147),#148,.T.);
159#150=ORIENTED_EDGE('',$,$,#24,.T.);
160#151=ORIENTED_EDGE('',$,$,#60,.T.);
161#152=ORIENTED_EDGE('',$,$,#40,.F.);
162#153=ORIENTED_EDGE('',$,$,#56,.F.);
163#154=EDGE_LOOP('',(#150,#151,#152,#153));
164#155=DIRECTION('',(1.0,0.0,0.0));
165#156=DIRECTION('',(0.0,1.0,0.0));
166#157=AXIS2_PLACEMENT_3D('',#2,#155,#156);
167#158=FACE_OUTER_BOUND('',#154,.T.);
168#159=PLANE('',#157);
169#160=ADVANCED_FACE('',(#158),#159,.T.);
170#161=CLOSED_SHELL('',(#75,#116,#127,#138,#149,#160));
171#162=MANIFOLD_SOLID_BREP('',#161);
172#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
173#9051=PRODUCT('Tfa130','Tfa130','',(#9050));
174#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
175#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
176#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
177#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
178#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
179#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
180#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
181#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
182#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
183#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#162),#9060);
184#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
185ENDSEC;
186END-ISO-10303-21;