step-examples/12-3a-shells/Tsh153.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Shell.LoadShells with-deeply-nested-compound
Reproducer recipe
Expected kernel behavior
Two OPEN_SHELLs (Shell1: faces at x=[0,1] and x=[1,2]; Shell2: faces at x=[2,3] and x=[3,4]) are wrapped through three nested SHELL_BASED_SURFACE_MODEL / representation levels before reaching the PRODUCT_DEFINITION. A shell enumerator must recurse through every wrapping level present in the file, not stop at a fixed depth; capping recursion below the actual nesting depth here drops the innermost shell (or its faces) from the enumerated result even though it is fully present in the data.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(18) ifc=schema_n/a
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tsh153: TWO OPEN_SHELLs nested three SHELL_BASED_SURFACE_MODEL wrappers deep â IS the deeply-nested-compound recursion mechanism; Shell1 (Face0 x=[0,1] + Face1 x=[1,2]) IS wired into OPEN_SHELL at depth-0; Shell2 (Face2 x=[2,3] + Face3 x=[3,4]) IS wired into OPEN_SHELL at depth-0; both SBSMs ARE referenced via nested PRODUCT representation chain; outer SBSM IS the depth-3 compound wrapper â IS the recursion-depth mechanism; ShapeAnalysis_Shell.LoadShells recurses into compounds to find shells; recursion truncation at depth < 3 drops innermost shell; fix: increase recursion depth or use iterative compound traversal; emit E_LOAD_SHELLS_RECURSION_TRUNCATED when inner shells not reached */ 3HEADER; 4FILE_DESCRIPTION(('Tsh153'),'2;1'); 5FILE_NAME('Tsh153.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('',(1.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,1.0,0.0)); 13#4=CARTESIAN_POINT('',(1.0,1.0,0.0)); 14#5=VERTEX_POINT('',#1); 15#6=VERTEX_POINT('',#2); 16#7=VERTEX_POINT('',#3); 17#8=VERTEX_POINT('',#4); 18#9=DIRECTION('',(1.0,0.0,0.0)); 19#10=VECTOR('',#9,1.0); 20#11=LINE('',#1,#10); 21#12=EDGE_CURVE('',#5,#6,#11,.T.); 22#13=DIRECTION('',(0.0,1.0,0.0)); 23#14=VECTOR('',#13,1.0); 24#15=LINE('',#2,#14); 25#16=EDGE_CURVE('',#6,#8,#15,.T.); 26#17=DIRECTION('',(1.0,0.0,0.0)); 27#18=VECTOR('',#17,1.0); 28#19=LINE('',#3,#18); 29#20=EDGE_CURVE('',#7,#8,#19,.T.); 30#21=DIRECTION('',(0.0,1.0,0.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#1,#22); 33#24=EDGE_CURVE('',#5,#7,#23,.T.); 34#25=ORIENTED_EDGE('',$,$,#12,.T.); 35#26=ORIENTED_EDGE('',$,$,#16,.T.); 36#27=ORIENTED_EDGE('',$,$,#20,.F.); 37#28=ORIENTED_EDGE('',$,$,#24,.F.); 38#29=EDGE_LOOP('',(#25,#26,#27,#28)); 39#30=FACE_OUTER_BOUND('',#29,.T.); 40#31=CARTESIAN_POINT('',(0.0,0.0,0.0)); 41#32=DIRECTION('',(0.0,0.0,1.0)); 42#33=DIRECTION('',(1.0,0.0,0.0)); 43#34=AXIS2_PLACEMENT_3D('',#31,#32,#33); 44#35=PLANE('',#34); 45#36=ADVANCED_FACE('',(#30),#35,.T.); 46#37=CARTESIAN_POINT('',(1.0,0.0,0.0)); 47#38=CARTESIAN_POINT('',(2.0,0.0,0.0)); 48#39=CARTESIAN_POINT('',(1.0,1.0,0.0)); 49#40=CARTESIAN_POINT('',(2.0,1.0,0.0)); 50#41=VERTEX_POINT('',#37); 51#42=VERTEX_POINT('',#38); 52#43=VERTEX_POINT('',#39); 53#44=VERTEX_POINT('',#40); 54#45=DIRECTION('',(1.0,0.0,0.0)); 55#46=VECTOR('',#45,1.0); 56#47=LINE('',#37,#46); 57#48=EDGE_CURVE('',#41,#42,#47,.T.); 58#49=DIRECTION('',(0.0,1.0,0.0)); 59#50=VECTOR('',#49,1.0); 60#51=LINE('',#38,#50); 61#52=EDGE_CURVE('',#42,#44,#51,.T.); 62#53=DIRECTION('',(1.0,0.0,0.0)); 63#54=VECTOR('',#53,1.0); 64#55=LINE('',#39,#54); 65#56=EDGE_CURVE('',#43,#44,#55,.T.); 66#57=DIRECTION('',(0.0,1.0,0.0)); 67#58=VECTOR('',#57,1.0); 68#59=LINE('',#37,#58); 69#60=EDGE_CURVE('',#41,#43,#59,.T.); 70#61=ORIENTED_EDGE('',$,$,#48,.T.); 71#62=ORIENTED_EDGE('',$,$,#52,.T.); 72#63=ORIENTED_EDGE('',$,$,#56,.F.); 73#64=ORIENTED_EDGE('',$,$,#60,.F.); 74#65=EDGE_LOOP('',(#61,#62,#63,#64)); 75#66=FACE_OUTER_BOUND('',#65,.T.); 76#67=CARTESIAN_POINT('',(1.0,0.0,0.0)); 77#68=DIRECTION('',(0.0,0.0,1.0)); 78#69=DIRECTION('',(1.0,0.0,0.0)); 79#70=AXIS2_PLACEMENT_3D('',#67,#68,#69); 80#71=PLANE('',#70); 81#72=ADVANCED_FACE('',(#66),#71,.T.); 82#73=OPEN_SHELL('',(#36,#72)); 83#74=SHELL_BASED_SURFACE_MODEL('',(#73)); 84#75=CARTESIAN_POINT('',(2.0,0.0,0.0)); 85#76=CARTESIAN_POINT('',(3.0,0.0,0.0)); 86#77=CARTESIAN_POINT('',(2.0,1.0,0.0)); 87#78=CARTESIAN_POINT('',(3.0,1.0,0.0)); 88#79=VERTEX_POINT('',#75); 89#80=VERTEX_POINT('',#76); 90#81=VERTEX_POINT('',#77); 91#82=VERTEX_POINT('',#78); 92#83=DIRECTION('',(1.0,0.0,0.0)); 93#84=VECTOR('',#83,1.0); 94#85=LINE('',#75,#84); 95#86=EDGE_CURVE('',#79,#80,#85,.T.); 96#87=DIRECTION('',(0.0,1.0,0.0)); 97#88=VECTOR('',#87,1.0); 98#89=LINE('',#76,#88); 99#90=EDGE_CURVE('',#80,#82,#89,.T.); 100#91=DIRECTION('',(1.0,0.0,0.0)); 101#92=VECTOR('',#91,1.0); 102#93=LINE('',#77,#92); 103#94=EDGE_CURVE('',#81,#82,#93,.T.); 104#95=DIRECTION('',(0.0,1.0,0.0)); 105#96=VECTOR('',#95,1.0); 106#97=LINE('',#75,#96); 107#98=EDGE_CURVE('',#79,#81,#97,.T.); 108#99=ORIENTED_EDGE('',$,$,#86,.T.); 109#100=ORIENTED_EDGE('',$,$,#90,.T.); 110#101=ORIENTED_EDGE('',$,$,#94,.F.); 111#102=ORIENTED_EDGE('',$,$,#98,.F.); 112#103=EDGE_LOOP('',(#99,#100,#101,#102)); 113#104=FACE_OUTER_BOUND('',#103,.T.); 114#105=CARTESIAN_POINT('',(2.0,0.0,0.0)); 115#106=DIRECTION('',(0.0,0.0,1.0)); 116#107=DIRECTION('',(1.0,0.0,0.0)); 117#108=AXIS2_PLACEMENT_3D('',#105,#106,#107); 118#109=PLANE('',#108); 119#110=ADVANCED_FACE('',(#104),#109,.T.); 120#111=CARTESIAN_POINT('',(3.0,0.0,0.0)); 121#112=CARTESIAN_POINT('',(4.0,0.0,0.0)); 122#113=CARTESIAN_POINT('',(3.0,1.0,0.0)); 123#114=CARTESIAN_POINT('',(4.0,1.0,0.0)); 124#115=VERTEX_POINT('',#111); 125#116=VERTEX_POINT('',#112); 126#117=VERTEX_POINT('',#113); 127#118=VERTEX_POINT('',#114); 128#119=DIRECTION('',(1.0,0.0,0.0)); 129#120=VECTOR('',#119,1.0); 130#121=LINE('',#111,#120); 131#122=EDGE_CURVE('',#115,#116,#121,.T.); 132#123=DIRECTION('',(0.0,1.0,0.0)); 133#124=VECTOR('',#123,1.0); 134#125=LINE('',#112,#124); 135#126=EDGE_CURVE('',#116,#118,#125,.T.); 136#127=DIRECTION('',(1.0,0.0,0.0)); 137#128=VECTOR('',#127,1.0); 138#129=LINE('',#113,#128); 139#130=EDGE_CURVE('',#117,#118,#129,.T.); 140#131=DIRECTION('',(0.0,1.0,0.0)); 141#132=VECTOR('',#131,1.0); 142#133=LINE('',#111,#132); 143#134=EDGE_CURVE('',#115,#117,#133,.T.); 144#135=ORIENTED_EDGE('',$,$,#122,.T.); 145#136=ORIENTED_EDGE('',$,$,#126,.T.); 146#137=ORIENTED_EDGE('',$,$,#130,.F.); 147#138=ORIENTED_EDGE('',$,$,#134,.F.); 148#139=EDGE_LOOP('',(#135,#136,#137,#138)); 149#140=FACE_OUTER_BOUND('',#139,.T.); 150#141=CARTESIAN_POINT('',(3.0,0.0,0.0)); 151#142=DIRECTION('',(0.0,0.0,1.0)); 152#143=DIRECTION('',(1.0,0.0,0.0)); 153#144=AXIS2_PLACEMENT_3D('',#141,#142,#143); 154#145=PLANE('',#144); 155#146=ADVANCED_FACE('',(#140),#145,.T.); 156#147=OPEN_SHELL('',(#110,#146)); 157#148=SHELL_BASED_SURFACE_MODEL('',(#147)); 158#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 159#9051=PRODUCT('Tsh153','Tsh153','',(#9050)); 160#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 161#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 162#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 163#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 164#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 165#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 166#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 167#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 168#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 169#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74),#9060); 170#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 171#9063=GEOMETRICALLY_BOUNDED_SURFACE_SHAPE_REPRESENTATION('inner_compound',(#148),#2); 172ENDSEC; 173END-ISO-10303-21;