step-examples/12-3a-shells/Tsh043.stp
Sources
- OCCT `ShapeFix_Shell::Perform` (`ShapeFix_Shell.hxx:55`)
Description
An OPEN_SHELL of multiple faces has per-face defects (orientation flips, missing pcurves, sub-tolerance edges) and shell-level defects (face-orientation propagation cannot resolve until per-face fixes converge). Healing one face changes the inputs to the next face's fix; a one-pass approach leaves residual defects.
Reproducer recipe
Two adjacent square faces sharing one edge, packaged as an OPEN_SHELL where one face has its orientation flag flipped relative to its neighbor.
Expected kernel behavior
a shell-level orchestrator that interleaves per-face healing with shell-wide invariants (consistent orientation, edge sharing) and iterates until either convergence or a fixed budget is exhausted; alternatively, a stricter kernel can refuse and require pre-healed input.
Notes
Umbrella entry; covers the "iterate until stable" requirement common to multi-defect shells. **See also**: Hea001 (shape-level), Hea002 (solid-level). Synonyms: "shell needs iterative healing", "per-face fixes interact with shell-level repair", "one-pass healing leaves residual defects", "multiple defects need orchestrated cleanup", "shell healer must converge".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(15) ifc=schema_n/a
Closure intent
ambiguous — the open shell is an incidental scaffold for a non-closure-related test.
Byte assertions
contains(b'OPEN_SHELL')count_entity_def(b'ADVANCED_FACE') == 2
Tier-3 assertions
n_faces_total == 2
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/* Tsh043: Multi-face shell needs coordinated healing (per-face + shell-wide) */ 3HEADER; 4FILE_DESCRIPTION(('Tsh043'),'2;1'); 5FILE_NAME('Tsh043.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.5,0.0,0.0)); 11#2=CARTESIAN_POINT('',(0.5,1.0,0.0)); 12#3=VERTEX_POINT('',#1); 13#4=VERTEX_POINT('',#2); 14#5=DIRECTION('',(0.0,1.0,0.0)); 15#6=VECTOR('',#5,1.0); 16#7=LINE('',#1,#6); 17#8=EDGE_CURVE('',#3,#4,#7,.T.); 18#9=CARTESIAN_POINT('',(0.0,0.0,0.0)); 19#10=CARTESIAN_POINT('',(0.0,1.0,0.0)); 20#11=VERTEX_POINT('',#9); 21#12=VERTEX_POINT('',#10); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=VECTOR('',#13,0.5); 24#15=LINE('',#9,#14); 25#16=EDGE_CURVE('',#11,#3,#15,.T.); 26#17=DIRECTION('',(-1.0,0.0,0.0)); 27#18=VECTOR('',#17,0.5); 28#19=LINE('',#2,#18); 29#20=EDGE_CURVE('',#4,#12,#19,.T.); 30#21=DIRECTION('',(0.0,-1.0,0.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#10,#22); 33#24=EDGE_CURVE('',#12,#11,#23,.T.); 34#25=ORIENTED_EDGE('',$,$,#16,.T.); 35#26=ORIENTED_EDGE('',$,$,#8,.T.); 36#27=ORIENTED_EDGE('',$,$,#20,.T.); 37#28=ORIENTED_EDGE('',$,$,#24,.T.); 38#29=EDGE_LOOP('',(#25,#26,#27,#28)); 39#30=CARTESIAN_POINT('',(0.0,0.0,0.0)); 40#31=DIRECTION('',(0.0,0.0,1.0)); 41#32=DIRECTION('',(1.0,0.0,0.0)); 42#33=AXIS2_PLACEMENT_3D('',#30,#31,#32); 43#34=PLANE('',#33); 44#35=FACE_OUTER_BOUND('',#29,.T.); 45#36=ADVANCED_FACE('',(#35),#34,.T.); 46#37=CARTESIAN_POINT('',(1.0,0.0,0.0)); 47#38=CARTESIAN_POINT('',(1.0,1.0,0.0)); 48#39=VERTEX_POINT('',#37); 49#40=VERTEX_POINT('',#38); 50#41=DIRECTION('',(1.0,0.0,0.0)); 51#42=VECTOR('',#41,0.5); 52#43=LINE('',#1,#42); 53#44=EDGE_CURVE('',#3,#39,#43,.T.); 54#45=DIRECTION('',(0.0,1.0,0.0)); 55#46=VECTOR('',#45,1.0); 56#47=LINE('',#37,#46); 57#48=EDGE_CURVE('',#39,#40,#47,.T.); 58#49=DIRECTION('',(-1.0,0.0,0.0)); 59#50=VECTOR('',#49,0.5); 60#51=LINE('',#38,#50); 61#52=EDGE_CURVE('',#40,#4,#51,.T.); 62#53=ORIENTED_EDGE('',$,$,#44,.T.); 63#54=ORIENTED_EDGE('',$,$,#48,.T.); 64#55=ORIENTED_EDGE('',$,$,#52,.T.); 65#56=ORIENTED_EDGE('',$,$,#8,.F.); 66#57=EDGE_LOOP('',(#53,#54,#55,#56)); 67#58=FACE_OUTER_BOUND('',#57,.T.); 68#59=ADVANCED_FACE('',(#58),#34,.F.); 69#60=OPEN_SHELL('',(#36,#59)); 70#61=SHELL_BASED_SURFACE_MODEL('',(#60)); 71#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 72#9051=PRODUCT('Tsh043','Tsh043','',(#9050)); 73#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 74#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 75#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 76#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 77#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 78#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 79#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 80#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 81#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 82#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#61),#9060); 83#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 84ENDSEC; 85END-ISO-10303-21;