Tsh124 — Face wires of area 10000 and 100 against a 1e-7 tolerance: none is negligible and none may be removed

§12.3a

crash topology

Sources

Description

Face wires of area 10000 and 100 against a 1e-7 tolerance: none is negligible and none may be removed

Reproducer recipe

Expected kernel behavior

The 100x100 face has three 10x10 inner bounds whose loops run counter-clockwise, the same sense as the outer bound, so outer and inner boundaries put material on the same side and the face interior is undefined. Classify each wire by containment — all three lie strictly inside the outer loop and are mutually disjoint — then reverse every wire whose sense disagrees with the consensus, so holes are traversed opposite to the outer boundary. Each hole encloses 100 square units against a declared accuracy of 1.0E-7, so none may be discarded as a negligible-area wire, and all three must be settled in one classification pass so the result does not depend on iteration order.

Notes

Provenance tier: bytes-only (Q5 full-corpus 2026-07-01).

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh124 - ShapeUpgrade_RemoveInternalWires multiple-internal-wires
3 * Defect: Face with 3 internal wires; RemoveInternalWires iterates internal
4 * wires but removes them in wrong order, leaving inconsistent face state */
5HEADER;
6FILE_DESCRIPTION(('Tsh124 - face with multiple internal wires removed in wrong order','wave 26'),'2;1');
7FILE_NAME('Tsh124.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
9ENDSEC;
10DATA;
11#1=APPLICATION_CONTEXT('automotive_design');
12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
13
14/* Face with outer bound and 3 internal wires (holes) */
15/* Outer boundary: (0,0,0)-(100,0,0)-(100,100,0)-(0,100,0) */
16/* Internal wire 1 (hole): (10,10,0)-(20,10,0)-(20,20,0)-(10,20,0) */
17/* Internal wire 2 (hole): (30,30,0)-(40,30,0)-(40,40,0)-(30,40,0) */
18/* Internal wire 3 (hole): (60,60,0)-(70,60,0)-(70,70,0)-(60,70,0) */
19
20#10=CARTESIAN_POINT('',(0,0,0));
21#11=CARTESIAN_POINT('',(100.0,0,0));
22#12=CARTESIAN_POINT('',(100.0,100.0,0));
23#13=CARTESIAN_POINT('',(0,100.0,0));
24
25/* Hole 1 vertices */
26#20=CARTESIAN_POINT('',(10.0,10.0,0));
27#21=CARTESIAN_POINT('',(20.0,10.0,0));
28#22=CARTESIAN_POINT('',(20.0,20.0,0));
29#23=CARTESIAN_POINT('',(10.0,20.0,0));
30
31/* Hole 2 vertices */
32#24=CARTESIAN_POINT('',(30.0,30.0,0));
33#25=CARTESIAN_POINT('',(40.0,30.0,0));
34#26=CARTESIAN_POINT('',(40.0,40.0,0));
35#27=CARTESIAN_POINT('',(30.0,40.0,0));
36
37/* Hole 3 vertices */
38#28=CARTESIAN_POINT('',(60.0,60.0,0));
39#29=CARTESIAN_POINT('',(70.0,60.0,0));
40#30=CARTESIAN_POINT('',(70.0,70.0,0));
41#31=CARTESIAN_POINT('',(60.0,70.0,0));
42
43/* Outer boundary vertices */
44#40=VERTEX_POINT('',#10);
45#41=VERTEX_POINT('',#11);
46#42=VERTEX_POINT('',#12);
47#43=VERTEX_POINT('',#13);
48
49/* Hole 1 vertices */
50#44=VERTEX_POINT('',#20);
51#45=VERTEX_POINT('',#21);
52#46=VERTEX_POINT('',#22);
53#47=VERTEX_POINT('',#23);
54
55/* Hole 2 vertices */
56#48=VERTEX_POINT('',#24);
57#49=VERTEX_POINT('',#25);
58#50=VERTEX_POINT('',#26);
59#51=VERTEX_POINT('',#27);
60
61/* Hole 3 vertices */
62#52=VERTEX_POINT('',#28);
63#53=VERTEX_POINT('',#29);
64#54=VERTEX_POINT('',#30);
65#55=VERTEX_POINT('',#31);
66
67/* Plane */
68#60=AXIS2_PLACEMENT_3D('plane_xy',#10,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0)));
69#61=PLANE('',#60);
70
71/* Outer boundary edges */
72#70=LINE('',#10,VECTOR('',(1,0,0),100.0));
73#71=EDGE_CURVE('outer_e1',#40,#41,#70,.T.);
74#72=LINE('',#11,VECTOR('',(0,1,0),100.0));
75#73=EDGE_CURVE('outer_e2',#41,#42,#72,.T.);
76#74=LINE('',#12,VECTOR('',(-1,0,0),100.0));
77#75=EDGE_CURVE('outer_e3',#42,#43,#74,.T.);
78#76=LINE('',#13,VECTOR('',(0,-1,0),100.0));
79#77=EDGE_CURVE('outer_e4',#43,#40,#76,.T.);
80
81/* Hole 1 edges */
82#80=LINE('',#20,VECTOR('',(1,0,0),10.0));
83#81=EDGE_CURVE('h1_e1',#44,#45,#80,.T.);
84#82=LINE('',#21,VECTOR('',(0,1,0),10.0));
85#83=EDGE_CURVE('h1_e2',#45,#46,#82,.T.);
86#84=LINE('',#22,VECTOR('',(-1,0,0),10.0));
87#85=EDGE_CURVE('h1_e3',#46,#47,#84,.T.);
88#86=LINE('',#23,VECTOR('',(0,-1,0),10.0));
89#87=EDGE_CURVE('h1_e4',#47,#44,#86,.T.);
90
91/* Hole 2 edges */
92#90=LINE('',#24,VECTOR('',(1,0,0),10.0));
93#91=EDGE_CURVE('h2_e1',#48,#49,#90,.T.);
94#92=LINE('',#25,VECTOR('',(0,1,0),10.0));
95#93=EDGE_CURVE('h2_e2',#49,#50,#92,.T.);
96#94=LINE('',#26,VECTOR('',(-1,0,0),10.0));
97#95=EDGE_CURVE('h2_e3',#50,#51,#94,.T.);
98#96=LINE('',#27,VECTOR('',(0,-1,0),10.0));
99#97=EDGE_CURVE('h2_e4',#51,#48,#96,.T.);
100
101/* Hole 3 edges */
102#100=LINE('',#28,VECTOR('',(1,0,0),10.0));
103#101=EDGE_CURVE('h3_e1',#52,#53,#100,.T.);
104#102=LINE('',#29,VECTOR('',(0,1,0),10.0));
105#103=EDGE_CURVE('h3_e2',#53,#54,#102,.T.);
106#104=LINE('',#30,VECTOR('',(-1,0,0),10.0));
107#105=EDGE_CURVE('h3_e3',#54,#55,#104,.T.);
108#106=LINE('',#31,VECTOR('',(0,-1,0),10.0));
109#107=EDGE_CURVE('h3_e4',#55,#52,#106,.T.);
110
111/* Outer edge loop */
112#150=ORIENTED_EDGE('',*,*,#71,.T.);
113#151=ORIENTED_EDGE('',*,*,#73,.T.);
114#152=ORIENTED_EDGE('',*,*,#75,.T.);
115#153=ORIENTED_EDGE('',*,*,#77,.T.);
116#154=EDGE_LOOP('outer_loop',(#150,#151,#152,#153));
117
118/* Hole 1 edge loop */
119#160=ORIENTED_EDGE('',*,*,#81,.T.);
120#161=ORIENTED_EDGE('',*,*,#83,.T.);
121#162=ORIENTED_EDGE('',*,*,#85,.T.);
122#163=ORIENTED_EDGE('',*,*,#87,.T.);
123#164=EDGE_LOOP('h1_loop',(#160,#161,#162,#163));
124
125/* Hole 2 edge loop */
126#170=ORIENTED_EDGE('',*,*,#91,.T.);
127#171=ORIENTED_EDGE('',*,*,#93,.T.);
128#172=ORIENTED_EDGE('',*,*,#95,.T.);
129#173=ORIENTED_EDGE('',*,*,#97,.T.);
130#174=EDGE_LOOP('h2_loop',(#170,#171,#172,#173));
131
132/* Hole 3 edge loop */
133#180=ORIENTED_EDGE('',*,*,#101,.T.);
134#181=ORIENTED_EDGE('',*,*,#103,.T.);
135#182=ORIENTED_EDGE('',*,*,#105,.T.);
136#183=ORIENTED_EDGE('',*,*,#107,.T.);
137#184=EDGE_LOOP('h3_loop',(#180,#181,#182,#183));
138
139/* Face bounds */
140#200=FACE_OUTER_BOUND('',#154,.T.);
141#201=FACE_INNER_BOUND('',#164,.T.);
142#202=FACE_INNER_BOUND('',#174,.T.);
143#203=FACE_INNER_BOUND('',#184,.T.);
144
145/* Face with 3 internal wires */
146#210=ADVANCED_FACE('holey_face',(#200,#201,#202,#203),#61,.T.);
147
148/* Shell containing the face */
149#220=OPEN_SHELL('multi_wire_shell',(#210));
150
151/* Mandatory PRODUCT chain */
152#9000=PRODUCT_CONTEXT('',#1,'mechanical');
153#9001=PRODUCT('Tsh124','Tsh124','',(#9000));
154#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
155#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
156#9004=PRODUCT_DEFINITION('','',#9002,#9003);
157#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
158#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
159#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
160#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
161#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
162#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
163#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#220));
164#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
165#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
166ENDSEC;
167END-ISO-10303-21;