Tsh049 — Internal edges lost during shell-level face merge

§12.3a shells/orientation

P1 — silent data loss

crash topology

Sources

Description

A face-unification step encounters two same-domain faces with a shared boundary plus one or more internal wires (holes). The algorithm merges the outer boundaries correctly but discards the inner wires entirely, producing a face without its expected holes. Visible as solid mass appearing where a hole should be.

Reproducer recipe

Two coplanar rectangular faces, each carrying one inner circular wire (`FACE_INNER_BOUND`). Merge expected to produce one rectangular face with two circular holes; defective merge produces one rectangle with no holes.

Expected kernel behavior

face-merge must preserve all `FACE_INNER_BOUND` wires from input faces; only the outer boundary is unified.

Notes

**See also**: Tsh046. Synonyms: "holes lost during face merge", "inner wires dropped on unification", "face inner bounds disappear after merge", "circular hole disappears after healing", "FACE_INNER_BOUND not preserved through unification".

Expected validation

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

Closure intent

ambiguous — the open shell is an incidental scaffold for a non-closure-related test.

Byte assertions

Cross-references

Tsh046

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh049 - Internal edges lost during shell-level face merge
3 * Defect: Two coplanar rectangular faces, each carrying one inner circular wire
4 * (FACE_INNER_BOUND). Merge expected to produce one face with two holes; defective
5 * merge produces one rectangle with no holes (inner wires discarded).
6 * Byte assertions: contains OPEN_SHELL, contains FACE_INNER_BOUND,
7 * count ADVANCED_FACE == 2 */
8HEADER;
9FILE_DESCRIPTION(('Tsh049 - inner wires lost during face merge','2;1'),'2;1');
10FILE_NAME('Tsh049.stp','2026-06-16T00:00:00',(''),(''),'wave-regen','','');
11FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
12ENDSEC;
13DATA;
14#1=APPLICATION_CONTEXT('automotive_design');
15#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
16
17/* Plane z=0 for both faces */
18#10=CARTESIAN_POINT('',(1.0,0.5,0.0));
19#11=DIRECTION('',(0.0,0.0,1.0));
20#12=DIRECTION('',(1.0,0.0,0.0));
21#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
22#14=PLANE('',#13);
23
24/* === Left face: x in [0,2], y in [0,1] with circular hole centred at (1,0.5) radius 0.2 === */
25/* Outer rectangle vertices */
26#20=CARTESIAN_POINT('',(0.0,0.0,0.0));
27#21=CARTESIAN_POINT('',(2.0,0.0,0.0));
28#22=CARTESIAN_POINT('',(2.0,1.0,0.0));
29#23=CARTESIAN_POINT('',(0.0,1.0,0.0));
30#24=VERTEX_POINT('',#20);
31#25=VERTEX_POINT('',#21);
32#26=VERTEX_POINT('',#22);
33#27=VERTEX_POINT('',#23);
34
35/* Outer edges left face */
36#30=DIRECTION('',(1.0,0.0,0.0));
37#31=VECTOR('',#30,2.0);
38#32=LINE('',#20,#31);
39#33=EDGE_CURVE('L_bot',#24,#25,#32,.T.);
40
41#34=DIRECTION('',(0.0,1.0,0.0));
42#35=VECTOR('',#34,1.0);
43#36=LINE('',#21,#35);
44#37=EDGE_CURVE('L_right',#25,#26,#36,.T.);
45
46#38=DIRECTION('',(-1.0,0.0,0.0));
47#39=VECTOR('',#38,2.0);
48#40=LINE('',#22,#39);
49#41=EDGE_CURVE('L_top',#26,#27,#40,.T.);
50
51#42=DIRECTION('',(0.0,-1.0,0.0));
52#43=VECTOR('',#42,1.0);
53#44=LINE('',#23,#43);
54#45=EDGE_CURVE('L_left',#27,#24,#44,.T.);
55
56/* Inner circular hole approximated as 4-edge square at (0.8,0.3)-(1.2,0.7) */
57#50=CARTESIAN_POINT('',(0.8,0.3,0.0));
58#51=CARTESIAN_POINT('',(1.2,0.3,0.0));
59#52=CARTESIAN_POINT('',(1.2,0.7,0.0));
60#53=CARTESIAN_POINT('',(0.8,0.7,0.0));
61#54=VERTEX_POINT('',#50);
62#55=VERTEX_POINT('',#51);
63#56=VERTEX_POINT('',#52);
64#57=VERTEX_POINT('',#53);
65
66#60=DIRECTION('',(1.0,0.0,0.0));
67#61=VECTOR('',#60,0.4);
68#62=LINE('',#50,#61);
69#63=EDGE_CURVE('h1_bot',#54,#55,#62,.T.);
70
71#64=DIRECTION('',(0.0,1.0,0.0));
72#65=VECTOR('',#64,0.4);
73#66=LINE('',#51,#65);
74#67=EDGE_CURVE('h1_right',#55,#56,#66,.T.);
75
76#68=DIRECTION('',(-1.0,0.0,0.0));
77#69=VECTOR('',#68,0.4);
78#70=LINE('',#52,#69);
79#71=EDGE_CURVE('h1_top',#56,#57,#70,.T.);
80
81#72=DIRECTION('',(0.0,-1.0,0.0));
82#73=VECTOR('',#72,0.4);
83#74=LINE('',#53,#73);
84#75=EDGE_CURVE('h1_left',#57,#54,#74,.T.);
85
86/* Left face outer loop */
87#80=ORIENTED_EDGE('',*,*,#33,.T.);
88#81=ORIENTED_EDGE('',*,*,#37,.T.);
89#82=ORIENTED_EDGE('',*,*,#41,.T.);
90#83=ORIENTED_EDGE('',*,*,#45,.T.);
91#84=EDGE_LOOP('',(#80,#81,#82,#83));
92#85=FACE_OUTER_BOUND('',#84,.T.);
93
94/* Left face inner hole loop (clockwise = hole) */
95#86=ORIENTED_EDGE('',*,*,#63,.F.);
96#87=ORIENTED_EDGE('',*,*,#75,.F.);
97#88=ORIENTED_EDGE('',*,*,#71,.F.);
98#89=ORIENTED_EDGE('',*,*,#67,.F.);
99#90=EDGE_LOOP('',(#86,#87,#88,#89));
100#91=FACE_INNER_BOUND('hole1',#90,.T.);
101
102#92=ADVANCED_FACE('left_face',(#85,#91),#14,.T.);
103
104/* === Right face: x in [2,4], y in [0,1] with its own inner hole === */
105#100=CARTESIAN_POINT('',(4.0,0.0,0.0));
106#101=CARTESIAN_POINT('',(4.0,1.0,0.0));
107#102=VERTEX_POINT('',#100);
108#103=VERTEX_POINT('',#101);
109
110/* Shared edge: (2,0,0)-(2,1,0) already defined as L_right (#37); use .F. on right face */
111/* right_R far right edge */
112#104=DIRECTION('',(1.0,0.0,0.0));
113#105=VECTOR('',#104,2.0);
114#106=LINE('',#21,#105);
115#107=EDGE_CURVE('R_bot',#25,#102,#106,.T.);
116
117#108=DIRECTION('',(0.0,1.0,0.0));
118#109=VECTOR('',#108,1.0);
119#110=LINE('',#100,#109);
120#111=EDGE_CURVE('R_right',#102,#103,#110,.T.);
121
122#112=DIRECTION('',(-1.0,0.0,0.0));
123#113=VECTOR('',#112,2.0);
124#114=LINE('',#101,#113);
125#115=EDGE_CURVE('R_top',#103,#26,#114,.T.);
126
127/* Inner hole in right face at (2.8,0.3)-(3.2,0.7) */
128#120=CARTESIAN_POINT('',(2.8,0.3,0.0));
129#121=CARTESIAN_POINT('',(3.2,0.3,0.0));
130#122=CARTESIAN_POINT('',(3.2,0.7,0.0));
131#123=CARTESIAN_POINT('',(2.8,0.7,0.0));
132#124=VERTEX_POINT('',#120);
133#125=VERTEX_POINT('',#121);
134#126=VERTEX_POINT('',#122);
135#127=VERTEX_POINT('',#123);
136
137#130=DIRECTION('',(1.0,0.0,0.0));
138#131=VECTOR('',#130,0.4);
139#132=LINE('',#120,#131);
140#133=EDGE_CURVE('h2_bot',#124,#125,#132,.T.);
141
142#134=DIRECTION('',(0.0,1.0,0.0));
143#135=VECTOR('',#134,0.4);
144#136=LINE('',#121,#135);
145#137=EDGE_CURVE('h2_right',#125,#126,#136,.T.);
146
147#138=DIRECTION('',(-1.0,0.0,0.0));
148#139=VECTOR('',#138,0.4);
149#140=LINE('',#122,#139);
150#141=EDGE_CURVE('h2_top',#126,#127,#140,.T.);
151
152#142=DIRECTION('',(0.0,-1.0,0.0));
153#143=VECTOR('',#142,0.4);
154#144=LINE('',#123,#143);
155#145=EDGE_CURVE('h2_left',#127,#124,#144,.T.);
156
157/* Right face outer loop */
158#150=ORIENTED_EDGE('',*,*,#107,.T.);
159#151=ORIENTED_EDGE('',*,*,#111,.T.);
160#152=ORIENTED_EDGE('',*,*,#115,.T.);
161#153=ORIENTED_EDGE('',*,*,#37,.F.);
162#154=EDGE_LOOP('',(#150,#151,#152,#153));
163#155=FACE_OUTER_BOUND('',#154,.T.);
164
165/* Right face inner hole loop */
166#156=ORIENTED_EDGE('',*,*,#133,.F.);
167#157=ORIENTED_EDGE('',*,*,#145,.F.);
168#158=ORIENTED_EDGE('',*,*,#141,.F.);
169#159=ORIENTED_EDGE('',*,*,#137,.F.);
170#160=EDGE_LOOP('',(#156,#157,#158,#159));
171#161=FACE_INNER_BOUND('hole2',#160,.T.);
172
173#162=ADVANCED_FACE('right_face',(#155,#161),#14,.T.);
174
175/* OPEN_SHELL */
176#500=OPEN_SHELL('two_faces_with_holes',(#92,#162));
177
178/* Mandatory PRODUCT chain */
179#9000=PRODUCT_CONTEXT('',#1,'mechanical');
180#9001=PRODUCT('Tsh049','Tsh049','',(#9000));
181#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
182#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
183#9004=PRODUCT_DEFINITION('','',#9002,#9003);
184#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
185#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
186#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
187#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
188#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
189#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
190#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#500));
191#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
192#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
193ENDSEC;
194END-ISO-10303-21;