step-examples/12-3a-shells/Tsh263.stp
Sources
- occt-coverage PARTIAL audit, `tkshhealing/problems.json` `tkshh-sliver-solid` subvariant 3 ("repair mode: delete (Remove) vs fold into neighboring solid (Merge), selectable via SetFixMode(0/1/2)"). `ShapeFix_FixSmallSolid::Merge` — `ShapeFix_FixSmallSolid.cxx:401` @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`
- its helper `FindMostSharedShell` at `:219` (face-identity lookup `theMapFacesToOuterShells.Seek(aFace)` at `:247`, bail-out `return Standard_False` at `:270-272`)
- `MapFacesToShells` at `:192`. Reader-side asymmetry: `StepToTopoDS_Builder::Init(ShellBasedSurfaceModel)` `StepToTopoDS_Builder.cxx:380` allocates ONE translation cache for the whole model (`:390-393`, shell loop `:413-443`) whereas `Init(ManifoldSolidBrep)` `:119` allocates a fresh one per solid (`:128-129`).
Description
Two watertight `CLOSED_SHELL`s carried by one `SHELL_BASED_SURFACE_MODEL` share a boundary wall BY IDENTITY: the single `ADVANCED_FACE` named `shared_sliver_wall` (the x=12 plane) is listed by both shells, as are the four `EDGE_CURVE`s and four `VERTEX_POINT`s it is built from. Body A is a 12x9x6 block (volume 648); body B is a 0.04x9x6 flake (volume 2.16, 0.333% of A; width factor volume/(area/2) = 0.0396 mm). This is the structural difference from Tsh234/Tsh235 (and Tsh238/Tsh239), whose slivers sit flush against the normal body but carry entirely independent boundary entities — merely coincident geometry, no shared boundary. A receiver that wants to fold a negligible body into its neighbour rather than delete it needs a boundary the two bodies genuinely have in common; this fixture supplies exactly that, and nothing else about the geometry is unusual.
Reproducer recipe
`SHELL_BASED_SURFACE_MODEL('',(#shell_a,#shell_b))` where `#shell_a` and `#shell_b` are both `CLOSED_SHELL`s that list the SAME `ADVANCED_FACE` entity (`shared_sliver_wall`), and the faces adjoining that wall in each shell reuse the wall's four `EDGE_CURVE`/`VERTEX_POINT` entities; `#shell_b` bounds a body whose volume is a fraction of a percent of `#shell_a`'s.
Expected kernel behavior
heal; recognise the negligible-size body (by volume ratio and/or by thinness) and, when the caller asks for the folding disposition rather than the deleting one, absorb it into the neighbour it shares a wall with — dropping the now-interior shared wall and keeping the flake's other five faces, so the resulting single body's volume is the sum of the two. When the caller asks for the deleting disposition instead, the flake and all six of its faces disappear and the neighbour is left untouched.
Notes
Live-verified in this worktree (OCP/OCCT 7.8.1) against this fixture's own bytes. The default read returns a compound of 2 shells / 11 distinct faces with the x=12 wall present ONCE and shared (`TopExp::MapShapes` dedupes to 11; the plain explorer walk visits it twice, which is why the tier-3 count is 12). **Runtime-scaffold verification**: wrapping each translated shell into a `TopoDS_Solid` with `BRep_Builder` (bypassing the reader's own solid-assembly step, not its healing — the same scaffold convention as Tsh236/Tsh237) yields a 2-solid compound in which `solid0.face[5].IsSame(solid1.face[0])` is TRUE, volumes 648 / 2.16, width factors 2.769 / 0.0396. Driving `ShapeFix_FixSmallSolid` on that compound then separates the two dispositions decisively and identically at `SetFixMode(0)`, `(1)` and `(2)`: `Remove()` → 1 solid, 6 faces, volume 648 (flake deleted); `Merge()` → 1 solid, 10 faces, 1 shell, volume 650.16 (= 648 + 2.16, flake folded in, shared wall consumed). The negative control is the rest of the family: the identical scaffold run against Tsh234, Tsh235, Tsh238 and Tsh239 fires `Remove()` on every one of them (2 solids → 1) but leaves `Merge()` completely inert (2 solids / 12 faces unchanged in all three fix modes) — because `FindMostSharedShell` finds no shared face and returns nothing (`ShapeFix_FixSmallSolid.cxx:270-272`). Two `MANIFOLD_SOLID_BREP` roots CANNOT reproduce this: an experiment in this worktree authored two solids whose shells list the same `ADVANCED_FACE` entity id and the reader still returned 12 distinct faces with zero sharing (also with `read.step.nonmanifold=1`), matching the per-solid translation cache at `StepToTopoDS_Builder.cxx:128-129` — which is why the fixture is authored as a shared-face shell pair. **Fixture kind**: scaffold (shape supplies the shared-boundary precondition; the small-solid healer must be invoked post-transfer, mirroring Tsh236/Tsh237). **See also**: Tsh234 (isolated / volume-ratio delete sibling), Tsh235 (width-factor delete sibling), Tsh264 (the same precondition framed against the opt-in `dropsmallsolids` operator). Synonyms: "sliver solid shares face with neighbor", "merge disposition small solid", "fold debris solid into adjacent body", "shared wall between sliver and body", "small solid absorbed not deleted". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(43) ifc=schema_n/a
Byte assertions
count_entity_def(b'CLOSED_SHELL') == 2count_entity_def(b'ADVANCED_FACE') == 11contains(b'shared_sliver_wall')
Tier-3 assertions
n_faces_total == 12face[0].surface_type == "plane"brepcheck.valid == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh263: SHELL_BASED_SURFACE_MODEL carrying two watertight CLOSED_SHELLs that share ONE ADVANCED_FACE entity ('shared_sliver_wall', the x=12 wall) plus its four EDGE_CURVEs and four VERTEX_POINTs: body A is a 12x9x6 block (volume 648), body B a 0.04x9x6 flake (volume 2.16, 0.333% of A, width factor 0.0396mm). The shared boundary face is the precondition a fold-into-the-neighbour sliver repair needs and that Tsh234/Tsh235's merely-touching slivers lack */ 3HEADER; 4FILE_DESCRIPTION(('Tsh263'),'2;1'); 5FILE_NAME('Tsh263.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('',(0.0,9.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,0.0,6.0)); 13#4=CARTESIAN_POINT('',(0.0,9.0,6.0)); 14#5=CARTESIAN_POINT('',(12.0,0.0,0.0)); 15#6=CARTESIAN_POINT('',(12.0,9.0,0.0)); 16#7=CARTESIAN_POINT('',(12.0,0.0,6.0)); 17#8=CARTESIAN_POINT('',(12.0,9.0,6.0)); 18#9=CARTESIAN_POINT('',(12.04,0.0,0.0)); 19#10=CARTESIAN_POINT('',(12.04,9.0,0.0)); 20#11=CARTESIAN_POINT('',(12.04,0.0,6.0)); 21#12=CARTESIAN_POINT('',(12.04,9.0,6.0)); 22#13=VERTEX_POINT('',#1); 23#14=VERTEX_POINT('',#2); 24#15=VERTEX_POINT('',#3); 25#16=VERTEX_POINT('',#4); 26#17=VERTEX_POINT('',#5); 27#18=VERTEX_POINT('',#6); 28#19=VERTEX_POINT('',#7); 29#20=VERTEX_POINT('',#8); 30#21=VERTEX_POINT('',#9); 31#22=VERTEX_POINT('',#10); 32#23=VERTEX_POINT('',#11); 33#24=VERTEX_POINT('',#12); 34#25=DIRECTION('',(0,1,0)); 35#26=VECTOR('',#25,9.0); 36#27=LINE('',#5,#26); 37#28=EDGE_CURVE('',#17,#18,#27,.T.); 38#29=DIRECTION('',(0,1,0)); 39#30=VECTOR('',#29,9.0); 40#31=LINE('',#7,#30); 41#32=EDGE_CURVE('',#19,#20,#31,.T.); 42#33=DIRECTION('',(0,0,1)); 43#34=VECTOR('',#33,6.0); 44#35=LINE('',#5,#34); 45#36=EDGE_CURVE('',#17,#19,#35,.T.); 46#37=DIRECTION('',(0,0,1)); 47#38=VECTOR('',#37,6.0); 48#39=LINE('',#6,#38); 49#40=EDGE_CURVE('',#18,#20,#39,.T.); 50#41=DIRECTION('',(0,1,0)); 51#42=VECTOR('',#41,9.0); 52#43=LINE('',#1,#42); 53#44=EDGE_CURVE('',#13,#14,#43,.T.); 54#45=DIRECTION('',(0,1,0)); 55#46=VECTOR('',#45,9.0); 56#47=LINE('',#3,#46); 57#48=EDGE_CURVE('',#15,#16,#47,.T.); 58#49=DIRECTION('',(0,0,1)); 59#50=VECTOR('',#49,6.0); 60#51=LINE('',#1,#50); 61#52=EDGE_CURVE('',#13,#15,#51,.T.); 62#53=DIRECTION('',(0,0,1)); 63#54=VECTOR('',#53,6.0); 64#55=LINE('',#2,#54); 65#56=EDGE_CURVE('',#14,#16,#55,.T.); 66#57=DIRECTION('',(1,0,0)); 67#58=VECTOR('',#57,12.0); 68#59=LINE('',#1,#58); 69#60=EDGE_CURVE('',#13,#17,#59,.T.); 70#61=DIRECTION('',(1,0,0)); 71#62=VECTOR('',#61,12.0); 72#63=LINE('',#2,#62); 73#64=EDGE_CURVE('',#14,#18,#63,.T.); 74#65=DIRECTION('',(1,0,0)); 75#66=VECTOR('',#65,12.0); 76#67=LINE('',#3,#66); 77#68=EDGE_CURVE('',#15,#19,#67,.T.); 78#69=DIRECTION('',(1,0,0)); 79#70=VECTOR('',#69,12.0); 80#71=LINE('',#4,#70); 81#72=EDGE_CURVE('',#16,#20,#71,.T.); 82#73=DIRECTION('',(0,1,0)); 83#74=VECTOR('',#73,9.0); 84#75=LINE('',#9,#74); 85#76=EDGE_CURVE('',#21,#22,#75,.T.); 86#77=DIRECTION('',(0,1,0)); 87#78=VECTOR('',#77,9.0); 88#79=LINE('',#11,#78); 89#80=EDGE_CURVE('',#23,#24,#79,.T.); 90#81=DIRECTION('',(0,0,1)); 91#82=VECTOR('',#81,6.0); 92#83=LINE('',#9,#82); 93#84=EDGE_CURVE('',#21,#23,#83,.T.); 94#85=DIRECTION('',(0,0,1)); 95#86=VECTOR('',#85,6.0); 96#87=LINE('',#10,#86); 97#88=EDGE_CURVE('',#22,#24,#87,.T.); 98#89=DIRECTION('',(1,0,0)); 99#90=VECTOR('',#89,0.04); 100#91=LINE('',#5,#90); 101#92=EDGE_CURVE('',#17,#21,#91,.T.); 102#93=DIRECTION('',(1,0,0)); 103#94=VECTOR('',#93,0.04); 104#95=LINE('',#6,#94); 105#96=EDGE_CURVE('',#18,#22,#95,.T.); 106#97=DIRECTION('',(1,0,0)); 107#98=VECTOR('',#97,0.04); 108#99=LINE('',#7,#98); 109#100=EDGE_CURVE('',#19,#23,#99,.T.); 110#101=DIRECTION('',(1,0,0)); 111#102=VECTOR('',#101,0.04); 112#103=LINE('',#8,#102); 113#104=EDGE_CURVE('',#20,#24,#103,.T.); 114#105=CARTESIAN_POINT('',(12.0,0.0,0.0)); 115#106=DIRECTION('',(1,0,0)); 116#107=DIRECTION('',(0,1,0)); 117#108=AXIS2_PLACEMENT_3D('',#105,#106,#107); 118#109=PLANE('',#108); 119#110=ORIENTED_EDGE('',$,$,#28,.T.); 120#111=ORIENTED_EDGE('',$,$,#40,.T.); 121#112=ORIENTED_EDGE('',$,$,#32,.F.); 122#113=ORIENTED_EDGE('',$,$,#36,.F.); 123#114=EDGE_LOOP('',(#110,#111,#112,#113)); 124#115=FACE_OUTER_BOUND('',#114,.T.); 125#116=ADVANCED_FACE('shared_sliver_wall',(#115),#109,.T.); 126#117=CARTESIAN_POINT('',(0.0,0.0,0.0)); 127#118=DIRECTION('',(-1,0,0)); 128#119=DIRECTION('',(0,1,0)); 129#120=AXIS2_PLACEMENT_3D('',#117,#118,#119); 130#121=PLANE('',#120); 131#122=ORIENTED_EDGE('',$,$,#44,.T.); 132#123=ORIENTED_EDGE('',$,$,#56,.T.); 133#124=ORIENTED_EDGE('',$,$,#48,.F.); 134#125=ORIENTED_EDGE('',$,$,#52,.F.); 135#126=EDGE_LOOP('',(#122,#123,#124,#125)); 136#127=FACE_OUTER_BOUND('',#126,.T.); 137#128=ADVANCED_FACE('',(#127),#121,.T.); 138#129=CARTESIAN_POINT('',(0.0,0.0,0.0)); 139#130=DIRECTION('',(0,0,-1)); 140#131=DIRECTION('',(1,0,0)); 141#132=AXIS2_PLACEMENT_3D('',#129,#130,#131); 142#133=PLANE('',#132); 143#134=ORIENTED_EDGE('',$,$,#44,.T.); 144#135=ORIENTED_EDGE('',$,$,#64,.T.); 145#136=ORIENTED_EDGE('',$,$,#28,.F.); 146#137=ORIENTED_EDGE('',$,$,#60,.F.); 147#138=EDGE_LOOP('',(#134,#135,#136,#137)); 148#139=FACE_OUTER_BOUND('',#138,.T.); 149#140=ADVANCED_FACE('',(#139),#133,.T.); 150#141=CARTESIAN_POINT('',(0.0,0.0,6.0)); 151#142=DIRECTION('',(0,0,1)); 152#143=DIRECTION('',(1,0,0)); 153#144=AXIS2_PLACEMENT_3D('',#141,#142,#143); 154#145=PLANE('',#144); 155#146=ORIENTED_EDGE('',$,$,#48,.T.); 156#147=ORIENTED_EDGE('',$,$,#72,.T.); 157#148=ORIENTED_EDGE('',$,$,#32,.F.); 158#149=ORIENTED_EDGE('',$,$,#68,.F.); 159#150=EDGE_LOOP('',(#146,#147,#148,#149)); 160#151=FACE_OUTER_BOUND('',#150,.T.); 161#152=ADVANCED_FACE('',(#151),#145,.T.); 162#153=CARTESIAN_POINT('',(0.0,0.0,0.0)); 163#154=DIRECTION('',(0,-1,0)); 164#155=DIRECTION('',(1,0,0)); 165#156=AXIS2_PLACEMENT_3D('',#153,#154,#155); 166#157=PLANE('',#156); 167#158=ORIENTED_EDGE('',$,$,#52,.T.); 168#159=ORIENTED_EDGE('',$,$,#68,.T.); 169#160=ORIENTED_EDGE('',$,$,#36,.F.); 170#161=ORIENTED_EDGE('',$,$,#60,.F.); 171#162=EDGE_LOOP('',(#158,#159,#160,#161)); 172#163=FACE_OUTER_BOUND('',#162,.T.); 173#164=ADVANCED_FACE('',(#163),#157,.T.); 174#165=CARTESIAN_POINT('',(0.0,9.0,0.0)); 175#166=DIRECTION('',(0,1,0)); 176#167=DIRECTION('',(1,0,0)); 177#168=AXIS2_PLACEMENT_3D('',#165,#166,#167); 178#169=PLANE('',#168); 179#170=ORIENTED_EDGE('',$,$,#56,.T.); 180#171=ORIENTED_EDGE('',$,$,#72,.T.); 181#172=ORIENTED_EDGE('',$,$,#40,.F.); 182#173=ORIENTED_EDGE('',$,$,#64,.F.); 183#174=EDGE_LOOP('',(#170,#171,#172,#173)); 184#175=FACE_OUTER_BOUND('',#174,.T.); 185#176=ADVANCED_FACE('',(#175),#169,.T.); 186#177=CARTESIAN_POINT('',(12.04,0.0,0.0)); 187#178=DIRECTION('',(1,0,0)); 188#179=DIRECTION('',(0,1,0)); 189#180=AXIS2_PLACEMENT_3D('',#177,#178,#179); 190#181=PLANE('',#180); 191#182=ORIENTED_EDGE('',$,$,#76,.T.); 192#183=ORIENTED_EDGE('',$,$,#88,.T.); 193#184=ORIENTED_EDGE('',$,$,#80,.F.); 194#185=ORIENTED_EDGE('',$,$,#84,.F.); 195#186=EDGE_LOOP('',(#182,#183,#184,#185)); 196#187=FACE_OUTER_BOUND('',#186,.T.); 197#188=ADVANCED_FACE('',(#187),#181,.T.); 198#189=CARTESIAN_POINT('',(12.0,0.0,0.0)); 199#190=DIRECTION('',(0,0,-1)); 200#191=DIRECTION('',(1,0,0)); 201#192=AXIS2_PLACEMENT_3D('',#189,#190,#191); 202#193=PLANE('',#192); 203#194=ORIENTED_EDGE('',$,$,#28,.T.); 204#195=ORIENTED_EDGE('',$,$,#96,.T.); 205#196=ORIENTED_EDGE('',$,$,#76,.F.); 206#197=ORIENTED_EDGE('',$,$,#92,.F.); 207#198=EDGE_LOOP('',(#194,#195,#196,#197)); 208#199=FACE_OUTER_BOUND('',#198,.T.); 209#200=ADVANCED_FACE('',(#199),#193,.T.); 210#201=CARTESIAN_POINT('',(12.0,0.0,6.0)); 211#202=DIRECTION('',(0,0,1)); 212#203=DIRECTION('',(1,0,0)); 213#204=AXIS2_PLACEMENT_3D('',#201,#202,#203); 214#205=PLANE('',#204); 215#206=ORIENTED_EDGE('',$,$,#32,.T.); 216#207=ORIENTED_EDGE('',$,$,#104,.T.); 217#208=ORIENTED_EDGE('',$,$,#80,.F.); 218#209=ORIENTED_EDGE('',$,$,#100,.F.); 219#210=EDGE_LOOP('',(#206,#207,#208,#209)); 220#211=FACE_OUTER_BOUND('',#210,.T.); 221#212=ADVANCED_FACE('',(#211),#205,.T.); 222#213=CARTESIAN_POINT('',(12.0,0.0,0.0)); 223#214=DIRECTION('',(0,-1,0)); 224#215=DIRECTION('',(1,0,0)); 225#216=AXIS2_PLACEMENT_3D('',#213,#214,#215); 226#217=PLANE('',#216); 227#218=ORIENTED_EDGE('',$,$,#36,.T.); 228#219=ORIENTED_EDGE('',$,$,#100,.T.); 229#220=ORIENTED_EDGE('',$,$,#84,.F.); 230#221=ORIENTED_EDGE('',$,$,#92,.F.); 231#222=EDGE_LOOP('',(#218,#219,#220,#221)); 232#223=FACE_OUTER_BOUND('',#222,.T.); 233#224=ADVANCED_FACE('',(#223),#217,.T.); 234#225=CARTESIAN_POINT('',(12.0,9.0,0.0)); 235#226=DIRECTION('',(0,1,0)); 236#227=DIRECTION('',(1,0,0)); 237#228=AXIS2_PLACEMENT_3D('',#225,#226,#227); 238#229=PLANE('',#228); 239#230=ORIENTED_EDGE('',$,$,#40,.T.); 240#231=ORIENTED_EDGE('',$,$,#104,.T.); 241#232=ORIENTED_EDGE('',$,$,#88,.F.); 242#233=ORIENTED_EDGE('',$,$,#96,.F.); 243#234=EDGE_LOOP('',(#230,#231,#232,#233)); 244#235=FACE_OUTER_BOUND('',#234,.T.); 245#236=ADVANCED_FACE('',(#235),#229,.T.); 246#237=CLOSED_SHELL('tsh261_block',(#128,#140,#152,#164,#176,#116)); 247#238=CLOSED_SHELL('tsh261_flake',(#116,#200,#212,#224,#236,#188)); 248#239=SHELL_BASED_SURFACE_MODEL('',(#237,#238)); 249#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 250#9051=PRODUCT('Tsh263','Tsh263','',(#9050)); 251#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 252#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 253#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 254#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 255#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 256#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 257#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 258#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 259#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 260#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#239),#9060); 261#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 262ENDSEC; 263END-ISO-10303-21;