step-examples/12-3a-shells/Tsh240.stp
Sources
- occt-coverage `exchange/problems.json` `bc-enclosed-region` (`BRepCheck_Solid::Blind`, `BRepCheck_Solid.cxx:297`, `BRepCheck_EnclosedRegion`). Per the occt-coverage audit, Tsh015 is the SOLE surviving fixture for this class (Bo003/Bo004 were pruned as structurally unable to fire it) — this is a second, independent fixture, added without modifying Tsh015.
Description
A `BREP_WITH_VOIDS` nests a void `CLOSED_SHELL` (4x3x2 box) geometrically fully inside an outer `CLOSED_SHELL` (12x8x6 box) — dimensions, proportions, and origin all distinct from Tsh015's pair of axis-aligned unit cubes (2x2x2 outer, 1x1x1 inner). Per AP214, the void's `ORIENTED_CLOSED_SHELL` orientation must be reversed (`.F.`) relative to the outer shell; this fixture emits it as `.T.` instead (same defect direction as Tsh015, distinct geometry) — the mis-oriented void is wired directly into the shell topology via a real, reachable `ORIENTED_CLOSED_SHELL`, not an orphaned entity.
Reproducer recipe
`BREP_WITH_VOIDS('',#outer_shell,(#void_ocs))` where `#void_ocs=ORIENTED_CLOSED_SHELL('',*,#void_shell,.T.)` and `#void_shell`'s bounding box is strictly contained in `#outer_shell`'s.
Expected kernel behavior
heal; detect the mis-oriented void by signed-volume sign; auto-reverse with a warning diagnostic.
Notes
Live-verified directly against this worktree's OCP/OCCT 7.8.1: `BRepCheck_Analyzer` on a raw `BRep_Builder`-constructed solid with two shells (outer + geometrically-enclosed inner, no reversal applied) DOES reliably raise `BRepCheck_Status.BRepCheck_EnclosedRegion` in-memory, confirming the check itself is real and reachable. However `STEPControl_Reader`'s default transfer path silently reclassifies/heals `BREP_WITH_VOIDS` void orientation by signed-volume sign during translation — independently re-verified live on both this fixture's `.T.` encoding and a hand-corrected `.F.` encoding, both translating to `BRepCheck_Status.NoError`. That silent healing IS this class's documented "Expected kernel behavior" (heal + auto-reverse); OCCT performs the heal, just without the warning diagnostic — the same live-observed behavior this worktree separately confirmed for Tsh015 itself (its on-disk translation also comes back `BrepCheck`-valid). The byte-level defect (a real, reachable `ORIENTED_CLOSED_SHELL` carrying the wrong orientation flag inside a genuine nested-void `BREP_WITH_VOIDS`) is what this fixture demonstrates. **See also**: Tsh015 (sole prior fixture — untouched), Bo003 (pruned — crashes), Bo004 (pruned — `aNbVTS<2` early-return, structurally cannot fire). Synonyms: "second enclosed-region solid", "nested void insurance fixture", "void orientation flag wrong distinct geometry", "BREP_WITH_VOIDS mis-oriented void second fixture", "enclosed region single-fixture-thin insurance".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(53) ifc=schema_n/a
Byte assertions
contains(b'ORIENTED_CLOSED_SHELL')count_entity_def(b'CLOSED_SHELL') == 2
Tier-3 assertions
n_faces_total == 12face[0].surface_type == "plane"
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/* Tsh240: BREP_WITH_VOIDS: outer CLOSED_SHELL (12x8x6 box) and void CLOSED_SHELL (4x3x2 box, geometrically nested fully inside outer) assembled via ORIENTED_CLOSED_SHELL with the void's orientation flag .T. instead of the AP214-required .F.; mis-oriented void IS wired into real, reachable shell topology (distinct dimensions and origin from Tsh015's unit-cube pair) â a second, independent bc-enclosed-region fixture */ 3HEADER; 4FILE_DESCRIPTION(('Tsh240'),'2;1'); 5FILE_NAME('Tsh240.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('',(12.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(12.0,8.0,0.0)); 13#4=CARTESIAN_POINT('',(0.0,8.0,0.0)); 14#5=CARTESIAN_POINT('',(0.0,0.0,6.0)); 15#6=CARTESIAN_POINT('',(12.0,0.0,6.0)); 16#7=CARTESIAN_POINT('',(12.0,8.0,6.0)); 17#8=CARTESIAN_POINT('',(0.0,8.0,6.0)); 18#9=VERTEX_POINT('',#1); 19#10=VERTEX_POINT('',#2); 20#11=VERTEX_POINT('',#3); 21#12=VERTEX_POINT('',#4); 22#13=VERTEX_POINT('',#5); 23#14=VERTEX_POINT('',#6); 24#15=VERTEX_POINT('',#7); 25#16=VERTEX_POINT('',#8); 26#17=DIRECTION('',(1,0,0)); 27#18=VECTOR('',#17,12.0); 28#19=LINE('',#1,#18); 29#20=EDGE_CURVE('',#9,#10,#19,.T.); 30#21=DIRECTION('',(0,1,0)); 31#22=VECTOR('',#21,8.0); 32#23=LINE('',#2,#22); 33#24=EDGE_CURVE('',#10,#11,#23,.T.); 34#25=DIRECTION('',(1,0,0)); 35#26=VECTOR('',#25,12.0); 36#27=LINE('',#4,#26); 37#28=EDGE_CURVE('',#12,#11,#27,.T.); 38#29=DIRECTION('',(0,1,0)); 39#30=VECTOR('',#29,8.0); 40#31=LINE('',#1,#30); 41#32=EDGE_CURVE('',#9,#12,#31,.T.); 42#33=DIRECTION('',(1,0,0)); 43#34=VECTOR('',#33,12.0); 44#35=LINE('',#5,#34); 45#36=EDGE_CURVE('',#13,#14,#35,.T.); 46#37=DIRECTION('',(0,1,0)); 47#38=VECTOR('',#37,8.0); 48#39=LINE('',#6,#38); 49#40=EDGE_CURVE('',#14,#15,#39,.T.); 50#41=DIRECTION('',(1,0,0)); 51#42=VECTOR('',#41,12.0); 52#43=LINE('',#8,#42); 53#44=EDGE_CURVE('',#16,#15,#43,.T.); 54#45=DIRECTION('',(0,1,0)); 55#46=VECTOR('',#45,8.0); 56#47=LINE('',#5,#46); 57#48=EDGE_CURVE('',#13,#16,#47,.T.); 58#49=DIRECTION('',(0,0,1)); 59#50=VECTOR('',#49,6.0); 60#51=LINE('',#1,#50); 61#52=EDGE_CURVE('',#9,#13,#51,.T.); 62#53=DIRECTION('',(0,0,1)); 63#54=VECTOR('',#53,6.0); 64#55=LINE('',#2,#54); 65#56=EDGE_CURVE('',#10,#14,#55,.T.); 66#57=DIRECTION('',(0,0,1)); 67#58=VECTOR('',#57,6.0); 68#59=LINE('',#3,#58); 69#60=EDGE_CURVE('',#11,#15,#59,.T.); 70#61=DIRECTION('',(0,0,1)); 71#62=VECTOR('',#61,6.0); 72#63=LINE('',#4,#62); 73#64=EDGE_CURVE('',#12,#16,#63,.T.); 74#65=CARTESIAN_POINT('',(0.0,0.0,0.0)); 75#66=DIRECTION('',(0,0,-1)); 76#67=DIRECTION('',(1,0,0)); 77#68=AXIS2_PLACEMENT_3D('',#65,#66,#67); 78#69=PLANE('',#68); 79#70=CARTESIAN_POINT('',(0.0,0.0,6.0)); 80#71=DIRECTION('',(0,0,1)); 81#72=DIRECTION('',(1,0,0)); 82#73=AXIS2_PLACEMENT_3D('',#70,#71,#72); 83#74=PLANE('',#73); 84#75=CARTESIAN_POINT('',(0.0,0.0,0.0)); 85#76=DIRECTION('',(0,-1,0)); 86#77=DIRECTION('',(1,0,0)); 87#78=AXIS2_PLACEMENT_3D('',#75,#76,#77); 88#79=PLANE('',#78); 89#80=CARTESIAN_POINT('',(0.0,8.0,0.0)); 90#81=DIRECTION('',(0,1,0)); 91#82=DIRECTION('',(1,0,0)); 92#83=AXIS2_PLACEMENT_3D('',#80,#81,#82); 93#84=PLANE('',#83); 94#85=CARTESIAN_POINT('',(0.0,0.0,0.0)); 95#86=DIRECTION('',(-1,0,0)); 96#87=DIRECTION('',(0,1,0)); 97#88=AXIS2_PLACEMENT_3D('',#85,#86,#87); 98#89=PLANE('',#88); 99#90=CARTESIAN_POINT('',(12.0,0.0,0.0)); 100#91=DIRECTION('',(1,0,0)); 101#92=DIRECTION('',(0,1,0)); 102#93=AXIS2_PLACEMENT_3D('',#90,#91,#92); 103#94=PLANE('',#93); 104#95=ORIENTED_EDGE('',$,$,#20,.T.); 105#96=ORIENTED_EDGE('',$,$,#24,.T.); 106#97=ORIENTED_EDGE('',$,$,#28,.F.); 107#98=ORIENTED_EDGE('',$,$,#32,.F.); 108#99=EDGE_LOOP('',(#95,#96,#97,#98)); 109#100=FACE_OUTER_BOUND('',#99,.T.); 110#101=ADVANCED_FACE('',(#100),#69,.T.); 111#102=ORIENTED_EDGE('',$,$,#36,.T.); 112#103=ORIENTED_EDGE('',$,$,#40,.T.); 113#104=ORIENTED_EDGE('',$,$,#44,.F.); 114#105=ORIENTED_EDGE('',$,$,#48,.F.); 115#106=EDGE_LOOP('',(#102,#103,#104,#105)); 116#107=FACE_OUTER_BOUND('',#106,.T.); 117#108=ADVANCED_FACE('',(#107),#74,.T.); 118#109=ORIENTED_EDGE('',$,$,#20,.T.); 119#110=ORIENTED_EDGE('',$,$,#56,.T.); 120#111=ORIENTED_EDGE('',$,$,#36,.F.); 121#112=ORIENTED_EDGE('',$,$,#52,.F.); 122#113=EDGE_LOOP('',(#109,#110,#111,#112)); 123#114=FACE_OUTER_BOUND('',#113,.T.); 124#115=ADVANCED_FACE('',(#114),#79,.T.); 125#116=ORIENTED_EDGE('',$,$,#28,.T.); 126#117=ORIENTED_EDGE('',$,$,#60,.T.); 127#118=ORIENTED_EDGE('',$,$,#44,.F.); 128#119=ORIENTED_EDGE('',$,$,#64,.F.); 129#120=EDGE_LOOP('',(#116,#117,#118,#119)); 130#121=FACE_OUTER_BOUND('',#120,.T.); 131#122=ADVANCED_FACE('',(#121),#84,.T.); 132#123=ORIENTED_EDGE('',$,$,#32,.T.); 133#124=ORIENTED_EDGE('',$,$,#64,.T.); 134#125=ORIENTED_EDGE('',$,$,#48,.F.); 135#126=ORIENTED_EDGE('',$,$,#52,.F.); 136#127=EDGE_LOOP('',(#123,#124,#125,#126)); 137#128=FACE_OUTER_BOUND('',#127,.T.); 138#129=ADVANCED_FACE('',(#128),#89,.T.); 139#130=ORIENTED_EDGE('',$,$,#24,.T.); 140#131=ORIENTED_EDGE('',$,$,#60,.T.); 141#132=ORIENTED_EDGE('',$,$,#40,.F.); 142#133=ORIENTED_EDGE('',$,$,#56,.F.); 143#134=EDGE_LOOP('',(#130,#131,#132,#133)); 144#135=FACE_OUTER_BOUND('',#134,.T.); 145#136=ADVANCED_FACE('',(#135),#94,.T.); 146#137=CLOSED_SHELL('tsh240_outer',(#101,#108,#115,#122,#129,#136)); 147#138=CARTESIAN_POINT('',(4.0,2.0,2.0)); 148#139=CARTESIAN_POINT('',(8.0,2.0,2.0)); 149#140=CARTESIAN_POINT('',(8.0,5.0,2.0)); 150#141=CARTESIAN_POINT('',(4.0,5.0,2.0)); 151#142=CARTESIAN_POINT('',(4.0,2.0,4.0)); 152#143=CARTESIAN_POINT('',(8.0,2.0,4.0)); 153#144=CARTESIAN_POINT('',(8.0,5.0,4.0)); 154#145=CARTESIAN_POINT('',(4.0,5.0,4.0)); 155#146=VERTEX_POINT('',#138); 156#147=VERTEX_POINT('',#139); 157#148=VERTEX_POINT('',#140); 158#149=VERTEX_POINT('',#141); 159#150=VERTEX_POINT('',#142); 160#151=VERTEX_POINT('',#143); 161#152=VERTEX_POINT('',#144); 162#153=VERTEX_POINT('',#145); 163#154=DIRECTION('',(1,0,0)); 164#155=VECTOR('',#154,4.0); 165#156=LINE('',#138,#155); 166#157=EDGE_CURVE('',#146,#147,#156,.T.); 167#158=DIRECTION('',(0,1,0)); 168#159=VECTOR('',#158,3.0); 169#160=LINE('',#139,#159); 170#161=EDGE_CURVE('',#147,#148,#160,.T.); 171#162=DIRECTION('',(1,0,0)); 172#163=VECTOR('',#162,4.0); 173#164=LINE('',#141,#163); 174#165=EDGE_CURVE('',#149,#148,#164,.T.); 175#166=DIRECTION('',(0,1,0)); 176#167=VECTOR('',#166,3.0); 177#168=LINE('',#138,#167); 178#169=EDGE_CURVE('',#146,#149,#168,.T.); 179#170=DIRECTION('',(1,0,0)); 180#171=VECTOR('',#170,4.0); 181#172=LINE('',#142,#171); 182#173=EDGE_CURVE('',#150,#151,#172,.T.); 183#174=DIRECTION('',(0,1,0)); 184#175=VECTOR('',#174,3.0); 185#176=LINE('',#143,#175); 186#177=EDGE_CURVE('',#151,#152,#176,.T.); 187#178=DIRECTION('',(1,0,0)); 188#179=VECTOR('',#178,4.0); 189#180=LINE('',#145,#179); 190#181=EDGE_CURVE('',#153,#152,#180,.T.); 191#182=DIRECTION('',(0,1,0)); 192#183=VECTOR('',#182,3.0); 193#184=LINE('',#142,#183); 194#185=EDGE_CURVE('',#150,#153,#184,.T.); 195#186=DIRECTION('',(0,0,1)); 196#187=VECTOR('',#186,2.0); 197#188=LINE('',#138,#187); 198#189=EDGE_CURVE('',#146,#150,#188,.T.); 199#190=DIRECTION('',(0,0,1)); 200#191=VECTOR('',#190,2.0); 201#192=LINE('',#139,#191); 202#193=EDGE_CURVE('',#147,#151,#192,.T.); 203#194=DIRECTION('',(0,0,1)); 204#195=VECTOR('',#194,2.0); 205#196=LINE('',#140,#195); 206#197=EDGE_CURVE('',#148,#152,#196,.T.); 207#198=DIRECTION('',(0,0,1)); 208#199=VECTOR('',#198,2.0); 209#200=LINE('',#141,#199); 210#201=EDGE_CURVE('',#149,#153,#200,.T.); 211#202=CARTESIAN_POINT('',(4.0,2.0,2.0)); 212#203=DIRECTION('',(0,0,-1)); 213#204=DIRECTION('',(1,0,0)); 214#205=AXIS2_PLACEMENT_3D('',#202,#203,#204); 215#206=PLANE('',#205); 216#207=CARTESIAN_POINT('',(4.0,2.0,4.0)); 217#208=DIRECTION('',(0,0,1)); 218#209=DIRECTION('',(1,0,0)); 219#210=AXIS2_PLACEMENT_3D('',#207,#208,#209); 220#211=PLANE('',#210); 221#212=CARTESIAN_POINT('',(4.0,2.0,2.0)); 222#213=DIRECTION('',(0,-1,0)); 223#214=DIRECTION('',(1,0,0)); 224#215=AXIS2_PLACEMENT_3D('',#212,#213,#214); 225#216=PLANE('',#215); 226#217=CARTESIAN_POINT('',(4.0,5.0,2.0)); 227#218=DIRECTION('',(0,1,0)); 228#219=DIRECTION('',(1,0,0)); 229#220=AXIS2_PLACEMENT_3D('',#217,#218,#219); 230#221=PLANE('',#220); 231#222=CARTESIAN_POINT('',(4.0,2.0,2.0)); 232#223=DIRECTION('',(-1,0,0)); 233#224=DIRECTION('',(0,1,0)); 234#225=AXIS2_PLACEMENT_3D('',#222,#223,#224); 235#226=PLANE('',#225); 236#227=CARTESIAN_POINT('',(8.0,2.0,2.0)); 237#228=DIRECTION('',(1,0,0)); 238#229=DIRECTION('',(0,1,0)); 239#230=AXIS2_PLACEMENT_3D('',#227,#228,#229); 240#231=PLANE('',#230); 241#232=ORIENTED_EDGE('',$,$,#157,.T.); 242#233=ORIENTED_EDGE('',$,$,#161,.T.); 243#234=ORIENTED_EDGE('',$,$,#165,.F.); 244#235=ORIENTED_EDGE('',$,$,#169,.F.); 245#236=EDGE_LOOP('',(#232,#233,#234,#235)); 246#237=FACE_OUTER_BOUND('',#236,.T.); 247#238=ADVANCED_FACE('',(#237),#206,.T.); 248#239=ORIENTED_EDGE('',$,$,#173,.T.); 249#240=ORIENTED_EDGE('',$,$,#177,.T.); 250#241=ORIENTED_EDGE('',$,$,#181,.F.); 251#242=ORIENTED_EDGE('',$,$,#185,.F.); 252#243=EDGE_LOOP('',(#239,#240,#241,#242)); 253#244=FACE_OUTER_BOUND('',#243,.T.); 254#245=ADVANCED_FACE('',(#244),#211,.T.); 255#246=ORIENTED_EDGE('',$,$,#157,.T.); 256#247=ORIENTED_EDGE('',$,$,#193,.T.); 257#248=ORIENTED_EDGE('',$,$,#173,.F.); 258#249=ORIENTED_EDGE('',$,$,#189,.F.); 259#250=EDGE_LOOP('',(#246,#247,#248,#249)); 260#251=FACE_OUTER_BOUND('',#250,.T.); 261#252=ADVANCED_FACE('',(#251),#216,.T.); 262#253=ORIENTED_EDGE('',$,$,#165,.T.); 263#254=ORIENTED_EDGE('',$,$,#197,.T.); 264#255=ORIENTED_EDGE('',$,$,#181,.F.); 265#256=ORIENTED_EDGE('',$,$,#201,.F.); 266#257=EDGE_LOOP('',(#253,#254,#255,#256)); 267#258=FACE_OUTER_BOUND('',#257,.T.); 268#259=ADVANCED_FACE('',(#258),#221,.T.); 269#260=ORIENTED_EDGE('',$,$,#169,.T.); 270#261=ORIENTED_EDGE('',$,$,#201,.T.); 271#262=ORIENTED_EDGE('',$,$,#185,.F.); 272#263=ORIENTED_EDGE('',$,$,#189,.F.); 273#264=EDGE_LOOP('',(#260,#261,#262,#263)); 274#265=FACE_OUTER_BOUND('',#264,.T.); 275#266=ADVANCED_FACE('',(#265),#226,.T.); 276#267=ORIENTED_EDGE('',$,$,#161,.T.); 277#268=ORIENTED_EDGE('',$,$,#197,.T.); 278#269=ORIENTED_EDGE('',$,$,#177,.F.); 279#270=ORIENTED_EDGE('',$,$,#193,.F.); 280#271=EDGE_LOOP('',(#267,#268,#269,#270)); 281#272=FACE_OUTER_BOUND('',#271,.T.); 282#273=ADVANCED_FACE('',(#272),#231,.T.); 283#274=CLOSED_SHELL('tsh240_void',(#238,#245,#252,#259,#266,#273)); 284#275=ORIENTED_CLOSED_SHELL('',*,#274,.T.); 285#276=BREP_WITH_VOIDS('tsh240_bwv',#137,(#275)); 286#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 287#9051=PRODUCT('Tsh240','Tsh240','',(#9050)); 288#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 289#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 290#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 291#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 292#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 293#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 294#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 295#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 296#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 297#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#276),#9060); 298#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 299ENDSEC; 300END-ISO-10303-21;