step-examples/12-3a-shells/Tsh264.stp
Sources
- occt-coverage PARTIAL audit, `exchange/problems.json` `seq-drop-small-solids` subvariant 3 ("remove vs merge disposition"). `dropsmallsolids` — `ShapeProcess_OperLibrary.cxx:594-635` (MergeSolids flag read at `:619`, dispatch at `:620-626`), registered under the name `DropSmallSolids` at `:908` @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`
- backed by `ShapeFix_FixSmallSolid::Merge` `ShapeFix_FixSmallSolid.cxx:401` whose helper `FindMostSharedShell` (`:219`) requires shared-face identity (`:247`, bail-out `:270-272`). Reader-side asymmetry as for Tsh263: `StepToTopoDS_Builder.cxx:390-393` (one translation cache per shell-based-surface-model) vs `:128-129` (fresh cache per manifold-solid-brep).
Description
The operator-framed sibling of Tsh263, at distinct dimensions. One `SHELL_BASED_SURFACE_MODEL` carries two watertight `CLOSED_SHELL`s that share the `ADVANCED_FACE` named `dss_shared_wall` (the x=20 plane) plus its four `EDGE_CURVE`s and four `VERTEX_POINT`s. Body A is a 20x5x5 bar (volume 500); body B is a 0.03x5x5 wafer (volume 0.75, 0.15% of A; width factor 0.0296 mm). Tsh238/Tsh239 — the existing fixtures for this operator — present a sliver that only touches its neighbour, so the operator's merge-vs-remove flag makes no observable difference on them; this fixture is the input on which the flag genuinely selects between two different results.
Reproducer recipe
Same structural pattern as Tsh263 (`SHELL_BASED_SURFACE_MODEL` over two `CLOSED_SHELL`s that list one `ADVANCED_FACE` entity in common, adjoining faces reusing that wall's `EDGE_CURVE`/`VERTEX_POINT` entities) at different dimensions/positions; the catalog entry documents the opt-in operator linkage explicitly.
Expected kernel behavior
when the small-solid-dropping operator is explicitly named in the post-transfer operator sequence with its merge flag OFF: delete the negligible wafer, leaving the bar alone. With the merge flag ON: absorb the wafer into the bar across the wall they share, consuming that wall and keeping the wafer's other five faces so no material is lost. Default transfer (no operator invoked) applies no such healing.
Notes
Live-verified in this worktree (OCP/OCCT 7.8.1) against this fixture's own bytes, driving the REAL operator — not just its backing class. Two `ShapeProcess` resource files differing only in the merge flag were fed to `ShapeProcess_ShapeContext` and executed via `ShapeProcess::Perform` after `ShapeProcess_OperLibrary::Init()`, on a scaffold compound built by wrapping each translated shell into a `TopoDS_Solid` with `BRep_Builder` (the Tsh236/Tsh237 convention). Scaffold input: 2 solids, 11 distinct faces, total volume 500.75, with `solid0.face[5].IsSame(solid1.face[0])` TRUE (width factors 2.222 / 0.0296). `MergeSolids : 0` → ok=True, 1 solid, 6 faces, volume 500 (wafer deleted). `MergeSolids : 1` → ok=True, 1 solid, 10 faces, 1 shell, volume 500.75 (wafer folded into the bar, shared wall consumed). The same operator invocation on Tsh238 and Tsh239 is flag-insensitive (both settings give the identical delete result), which is exactly the coverage hole this fixture fills. **Fixture kind**: scaffold (operator-test-pair: shape provides the shared-boundary precondition; the `dropsmallsolids` operator must be invoked post-transfer with its merge flag to reproduce the disposition split — mirrors the Tsh238/Tsh239 convention). **See also**: Tsh263 (same precondition framed against the healer class rather than the operator), Tsh238 (delete-disposition sibling), Tsh239 (thinness-criterion sibling). Synonyms: "dropsmallsolids MergeSolids flag", "STEP.exec.op merge small solid into neighbor", "opt-in operator merge disposition", "shared wall sliver operator context", "small solid folded by heal sequence". 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'dss_shared_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/* Tsh264: SHELL_BASED_SURFACE_MODEL carrying two watertight CLOSED_SHELLs that share ONE ADVANCED_FACE entity ('dss_shared_wall', the x=20 wall) plus its four EDGE_CURVEs and four VERTEX_POINTs: body A is a 20x5x5 bar (volume 500), body B a 0.03x5x5 wafer (volume 0.75, 0.15% of A, width factor 0.0296mm). The shared boundary face is what makes the small-solid-dropping operator's MergeSolids flag select between two genuinely different outcomes, which Tsh238/Tsh239's merely-touching slivers cannot */ 3HEADER; 4FILE_DESCRIPTION(('Tsh264'),'2;1'); 5FILE_NAME('Tsh264.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,5.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,0.0,5.0)); 13#4=CARTESIAN_POINT('',(0.0,5.0,5.0)); 14#5=CARTESIAN_POINT('',(20.0,0.0,0.0)); 15#6=CARTESIAN_POINT('',(20.0,5.0,0.0)); 16#7=CARTESIAN_POINT('',(20.0,0.0,5.0)); 17#8=CARTESIAN_POINT('',(20.0,5.0,5.0)); 18#9=CARTESIAN_POINT('',(20.03,0.0,0.0)); 19#10=CARTESIAN_POINT('',(20.03,5.0,0.0)); 20#11=CARTESIAN_POINT('',(20.03,0.0,5.0)); 21#12=CARTESIAN_POINT('',(20.03,5.0,5.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,5.0); 36#27=LINE('',#5,#26); 37#28=EDGE_CURVE('',#17,#18,#27,.T.); 38#29=DIRECTION('',(0,1,0)); 39#30=VECTOR('',#29,5.0); 40#31=LINE('',#7,#30); 41#32=EDGE_CURVE('',#19,#20,#31,.T.); 42#33=DIRECTION('',(0,0,1)); 43#34=VECTOR('',#33,5.0); 44#35=LINE('',#5,#34); 45#36=EDGE_CURVE('',#17,#19,#35,.T.); 46#37=DIRECTION('',(0,0,1)); 47#38=VECTOR('',#37,5.0); 48#39=LINE('',#6,#38); 49#40=EDGE_CURVE('',#18,#20,#39,.T.); 50#41=DIRECTION('',(0,1,0)); 51#42=VECTOR('',#41,5.0); 52#43=LINE('',#1,#42); 53#44=EDGE_CURVE('',#13,#14,#43,.T.); 54#45=DIRECTION('',(0,1,0)); 55#46=VECTOR('',#45,5.0); 56#47=LINE('',#3,#46); 57#48=EDGE_CURVE('',#15,#16,#47,.T.); 58#49=DIRECTION('',(0,0,1)); 59#50=VECTOR('',#49,5.0); 60#51=LINE('',#1,#50); 61#52=EDGE_CURVE('',#13,#15,#51,.T.); 62#53=DIRECTION('',(0,0,1)); 63#54=VECTOR('',#53,5.0); 64#55=LINE('',#2,#54); 65#56=EDGE_CURVE('',#14,#16,#55,.T.); 66#57=DIRECTION('',(1,0,0)); 67#58=VECTOR('',#57,20.0); 68#59=LINE('',#1,#58); 69#60=EDGE_CURVE('',#13,#17,#59,.T.); 70#61=DIRECTION('',(1,0,0)); 71#62=VECTOR('',#61,20.0); 72#63=LINE('',#2,#62); 73#64=EDGE_CURVE('',#14,#18,#63,.T.); 74#65=DIRECTION('',(1,0,0)); 75#66=VECTOR('',#65,20.0); 76#67=LINE('',#3,#66); 77#68=EDGE_CURVE('',#15,#19,#67,.T.); 78#69=DIRECTION('',(1,0,0)); 79#70=VECTOR('',#69,20.0); 80#71=LINE('',#4,#70); 81#72=EDGE_CURVE('',#16,#20,#71,.T.); 82#73=DIRECTION('',(0,1,0)); 83#74=VECTOR('',#73,5.0); 84#75=LINE('',#9,#74); 85#76=EDGE_CURVE('',#21,#22,#75,.T.); 86#77=DIRECTION('',(0,1,0)); 87#78=VECTOR('',#77,5.0); 88#79=LINE('',#11,#78); 89#80=EDGE_CURVE('',#23,#24,#79,.T.); 90#81=DIRECTION('',(0,0,1)); 91#82=VECTOR('',#81,5.0); 92#83=LINE('',#9,#82); 93#84=EDGE_CURVE('',#21,#23,#83,.T.); 94#85=DIRECTION('',(0,0,1)); 95#86=VECTOR('',#85,5.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.03); 100#91=LINE('',#5,#90); 101#92=EDGE_CURVE('',#17,#21,#91,.T.); 102#93=DIRECTION('',(1,0,0)); 103#94=VECTOR('',#93,0.03); 104#95=LINE('',#6,#94); 105#96=EDGE_CURVE('',#18,#22,#95,.T.); 106#97=DIRECTION('',(1,0,0)); 107#98=VECTOR('',#97,0.03); 108#99=LINE('',#7,#98); 109#100=EDGE_CURVE('',#19,#23,#99,.T.); 110#101=DIRECTION('',(1,0,0)); 111#102=VECTOR('',#101,0.03); 112#103=LINE('',#8,#102); 113#104=EDGE_CURVE('',#20,#24,#103,.T.); 114#105=CARTESIAN_POINT('',(20.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('dss_shared_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,5.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,5.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('',(20.03,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('',(20.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('',(20.0,0.0,5.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('',(20.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('',(20.0,5.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('tsh262_bar',(#128,#140,#152,#164,#176,#116)); 247#238=CLOSED_SHELL('tsh262_wafer',(#116,#200,#212,#224,#236,#188)); 248#239=SHELL_BASED_SURFACE_MODEL('',(#237,#238)); 249#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 250#9051=PRODUCT('Tsh264','Tsh264','',(#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;