Tsh259 — Small-area internal hole wire removal cascades into removing a whole neighboring face built on the same edges

§12.3a shells (sub-class: TKShHealing small-area wire, cross-face cascade subvariant — `tkshh-face-small-area-wire`)

P3 — cosmetic / metadata-only

topology

Sources

Description

`big_face` (10×10 `PLANE`, Tfa208's proven-tripping scale) carries a `FACE_OUTER_BOUND` (10×10) plus a `FACE_BOUND` internal hole wire (side `1e-4`, area `~1e-8`, built from 4 named `EDGE_CURVE`s `hole_e1..hole_e4`). A SEPARATE face, `small_neighbor_face`, has its ENTIRE `FACE_OUTER_BOUND` built from a second `EDGE_LOOP` referencing those SAME 4 `hole_e1..hole_e4` entities (genuine shared topology — not merely coincident geometry at the same coordinates). Both faces sit in one `OPEN_SHELL`, sharing one translation scope, so the shared `EDGE_CURVE` entities resolve to the identical edge objects in both faces.

Reproducer recipe

`big_face`: `ADVANCED_FACE('big_face',(#35,#65),#5,.T.)` where `#35` is the 10×10 `FACE_OUTER_BOUND` and `#65=FACE_BOUND('',#64,.F.)` wraps the tiny hole's `EDGE_LOOP` `#64=(hole_e1,hole_e2,hole_e3,hole_e4)`. `small_neighbor_face`: `ADVANCED_FACE('small_neighbor_face',(#76),#75,.T.)` where `#76=FACE_OUTER_BOUND('',#71,.T.)` wraps a SECOND `EDGE_LOOP` `#71` referencing the IDENTICAL `#47(hole_e1),#51(hole_e2),#55(hole_e3),#59(hole_e4)` entities. Both faces in `OPEN_SHELL('tsh259_shell',(#66,#77))`.

Expected kernel behavior

`removeSmallWire` finds `big_face`'s hole area below the minimum threshold and removes it, recording its 4 edges as removed. `removeSmallFaces` then examines every OTHER face touching those 4 edges (via the shape-wide edge→face map computed before any removal) — finds `small_neighbor_face`, whose entire outer wire is composed exclusively of those same 4 (now-removed) edges — and removes `small_neighbor_face` too, cascading the small-wire cleanup into a whole extra face removal, not just the hole itself.

Notes

**Empirical finding (live-verified, decisive, this worktree's OCP/OCCT 7.8.1)**: the reader's DEFAULT read (no supplementary invocation) does NOT auto-run the internal-wire-removal healer — the translated shape retains both faces intact (`n_faces_total=2`, `big_face` with 2 wires including the untouched hole, `small_neighbor_face` with its own 1 wire) — this is the class's cited mechanism, but it is not part of the ordinary STEP-read healing sequence (distinct from the small-area-wire face fixer, which the merged class record documents IS live on ordinary read for a per-face-only hole removal, e.g. Tfa208). A SUPPLEMENTARY, explicitly-invoked internal-wire-removal pass (same corpus convention as this packet's A3 sibling's supplementary sewing checks) with a minimum area of 1e-6 was run directly on the DEFAULT-translated shape: it reports success, with both the small-wire-removed status AND the small-faces-removed status flagged true; the resulting shape drops from 2 faces to exactly 1 — `big_face` survives with its hole gone (1 remaining wire, area recomputes to `100.0`) and `small_neighbor_face` is entirely gone, decisively confirming the cascade fires on this exact shared-edge input. Synonyms: "small-area wire removal cascades to neighbor face", "RemoveInternalWires cross-face cascade", "hole removal deletes adjacent face", "whole face boundary made of removed-hole edges", "cascading small-face cleanup". Provenance tier: bytes-sufficient.

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Tfa208

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh259: TEST - Face BIG (10x10, Tfa208's proven small-area-hole scale) has an internal
3   hole wire (area~1e-8) built from 4 EDGE_CURVE entities; a SEPARATE small face
4   (SMALL_NEIGHBOR) has its ENTIRE outer boundary built from those SAME 4 EDGE_CURVE
5   entities (genuine shared topology, not coincidental duplicate geometry) -- so once
6   ShapeUpgrade_RemoveInternalWires removes BIG's tiny hole wire, SMALL_NEIGHBOR's whole
7   outer wire consists only of now-removed edges and cascades into being removed too. */
8HEADER;
9FILE_DESCRIPTION(('Tsh259'),'2;1');
10FILE_NAME('Tsh259.stp','2026-07-13T00:00:00',(''),(''),'cad-research-suite','','');
11FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
12ENDSEC;
13DATA;
14#9000=APPLICATION_CONTEXT('mechanical design');
15#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#2=DIRECTION('',(0.0,0.0,1.0));
17#3=DIRECTION('',(1.0,0.0,0.0));
18#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
19#5=PLANE('big_face_surface',#4);
20#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#7=CARTESIAN_POINT('',(10.0,0.0,0.0));
22#8=CARTESIAN_POINT('',(10.0,10.0,0.0));
23#9=CARTESIAN_POINT('',(0.0,10.0,0.0));
24#10=VERTEX_POINT('',#6);
25#11=VERTEX_POINT('',#7);
26#12=VERTEX_POINT('',#8);
27#13=VERTEX_POINT('',#9);
28#14=DIRECTION('',(1.0,0.0,0.0));
29#15=VECTOR('',#14,10.0);
30#16=LINE('',#6,#15);
31#17=EDGE_CURVE('',#10,#11,#16,.T.);
32#18=DIRECTION('',(0.0,1.0,0.0));
33#19=VECTOR('',#18,10.0);
34#20=LINE('',#7,#19);
35#21=EDGE_CURVE('',#11,#12,#20,.T.);
36#22=DIRECTION('',(-1.0,0.0,0.0));
37#23=VECTOR('',#22,10.0);
38#24=LINE('',#8,#23);
39#25=EDGE_CURVE('',#12,#13,#24,.T.);
40#26=DIRECTION('',(0.0,-1.0,0.0));
41#27=VECTOR('',#26,10.0);
42#28=LINE('',#9,#27);
43#29=EDGE_CURVE('',#13,#10,#28,.T.);
44#30=ORIENTED_EDGE('',*,*,#17,.T.);
45#31=ORIENTED_EDGE('',*,*,#21,.T.);
46#32=ORIENTED_EDGE('',*,*,#25,.T.);
47#33=ORIENTED_EDGE('',*,*,#29,.T.);
48#34=EDGE_LOOP('',(#30,#31,#32,#33));
49#35=FACE_OUTER_BOUND('',#34,.T.);
50/* tiny hole (side 1e-4, area ~1e-8, Tfa208's proven-tripping scale): edges #47/#51/#55/#59
51   are SHARED verbatim by small_neighbor_face's own outer boundary below */
52#36=CARTESIAN_POINT('',(5.0,5.0,0.0));
53#37=CARTESIAN_POINT('',(5.0001,5.0,0.0));
54#38=CARTESIAN_POINT('',(5.0001,5.0001,0.0));
55#39=CARTESIAN_POINT('',(5.0,5.0001,0.0));
56#40=VERTEX_POINT('',#36);
57#41=VERTEX_POINT('',#37);
58#42=VERTEX_POINT('',#38);
59#43=VERTEX_POINT('',#39);
60#44=DIRECTION('',(1.0,0.0,0.0));
61#45=VECTOR('',#44,0.0001);
62#46=LINE('',#36,#45);
63#47=EDGE_CURVE('hole_e1',#40,#41,#46,.T.);
64#48=DIRECTION('',(0.0,1.0,0.0));
65#49=VECTOR('',#48,0.0001);
66#50=LINE('',#37,#49);
67#51=EDGE_CURVE('hole_e2',#41,#42,#50,.T.);
68#52=DIRECTION('',(-1.0,0.0,0.0));
69#53=VECTOR('',#52,0.0001);
70#54=LINE('',#38,#53);
71#55=EDGE_CURVE('hole_e3',#42,#43,#54,.T.);
72#56=DIRECTION('',(0.0,-1.0,0.0));
73#57=VECTOR('',#56,0.0001);
74#58=LINE('',#39,#57);
75#59=EDGE_CURVE('hole_e4',#43,#40,#58,.T.);
76#60=ORIENTED_EDGE('',*,*,#47,.T.);
77#61=ORIENTED_EDGE('',*,*,#51,.T.);
78#62=ORIENTED_EDGE('',*,*,#55,.T.);
79#63=ORIENTED_EDGE('',*,*,#59,.T.);
80#64=EDGE_LOOP('',(#60,#61,#62,#63));
81#65=FACE_BOUND('',#64,.F.);
82#66=ADVANCED_FACE('big_face',(#35,#65),#5,.T.);
83/* small_neighbor_face: entire outer boundary is a SECOND EDGE_LOOP wrapping the
84   IDENTICAL #47/#51/#55/#59 EDGE_CURVE entities used by big_face's hole above --
85   genuine shared topology, not merely coincident geometry */
86#67=ORIENTED_EDGE('',*,*,#47,.T.);
87#68=ORIENTED_EDGE('',*,*,#51,.T.);
88#69=ORIENTED_EDGE('',*,*,#55,.T.);
89#70=ORIENTED_EDGE('',*,*,#59,.T.);
90#71=EDGE_LOOP('',(#67,#68,#69,#70));
91#72=DIRECTION('',(0.0,0.0,1.0));
92#73=DIRECTION('',(1.0,0.0,0.0));
93#74=AXIS2_PLACEMENT_3D('',#36,#72,#73);
94#75=PLANE('small_neighbor_surface',#74);
95#76=FACE_OUTER_BOUND('',#71,.T.);
96#77=ADVANCED_FACE('small_neighbor_face',(#76),#75,.T.);
97#78=OPEN_SHELL('tsh259_shell',(#66,#77));
98#79=SHELL_BASED_SURFACE_MODEL('tsh259_sbsm',(#78));
99#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
100#9051=PRODUCT('Tsh259','Tsh259','',(#9050));
101#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
102#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
103#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
104#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
105#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
106#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
107#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
108#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
109#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
110#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#79),#9060);
111#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
112ENDSEC;
113END-ISO-10303-21;