step-examples/12-3a-shells/Tsh228.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Shell.Perform closed_flag_sync_failure
Reproducer recipe
Expected kernel behavior
The three triangular faces share edges correctly around the shared apex (V_apex(0,0,1)) but the base edge from V_a to V_c is referenced by only one face — a genuine free (boundary) edge — while the shell is declared CLOSED_SHELL. After running any orientation-fix pass, re-derive the shell's closed/open status by checking that every edge is shared by exactly two faces, rather than leaving the CLOSED_SHELL label from authoring time unexamined; here that check fails on the base edge, so the shell must be reported as open (not closed) despite its declared entity type.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(13) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 3
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tsh228: CLOSED_SHELL with THREE TRIANGULAR ADVANCED_FACEs IS the closed_flag_sync_failure trigger; apex vertex IS V_apex(0,0,1) â IS the shared top vertex; base vertices ARE V_a(0,1,0), V_b(-1,-1,0), V_c(1,-1,0) â IS the triangle base; shared edge e_ab IS from V_a to V_b â IS shared by face 1 and face 2; shared edge e_bc IS from V_b to V_c â IS shared by face 2 and face 3; shared edge e_ca IS from V_c to V_a â IS shared by face 3 and face 1 (apex edges); face 1 IS triangle V_apex, V_a, V_b â IS the left lateral face; face 2 IS triangle V_apex, V_b, V_c â IS the right lateral face; face 3 IS triangle V_apex, V_c, V_a â IS the front lateral face; base edge from V_a to V_c IS a free edge â IS the incomplete closure (gap); shell IS declared CLOSED_SHELL â IS the initial Closed()==True state; Perform() runs FixFaceOrientation â IS the orientation-fix pass; HasFreeEdges() returns True (free base edge detected) â IS the open-shell evidence; Closed() flag IS NOT reset after Perform() â IS the sync-failure defect; Closed() == True AND HasFreeEdges() == True â IS the out-of-sync state; fix: Perform() must sync Closed() with HasFreeEdges() result after FixFaceOrientation; emit E_CLOSED_FLAG_SYNC_FAILURE when Closed() disagrees with HasFreeEdges after Perform() */ 3HEADER; 4FILE_DESCRIPTION(('Tsh228'),'2;1'); 5FILE_NAME('Tsh228.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,1.0)); 11#2=VERTEX_POINT('',#1); 12#3=CARTESIAN_POINT('',(0.0,1.0,0.0)); 13#4=VERTEX_POINT('',#3); 14#5=CARTESIAN_POINT('',(-1.0,-1.0,0.0)); 15#6=VERTEX_POINT('',#5); 16#7=CARTESIAN_POINT('',(1.0,-1.0,0.0)); 17#8=VERTEX_POINT('',#7); 18#9=DIRECTION('',(0.0,1.0,-1.0)); 19#10=VECTOR('',#9,1.0); 20#11=LINE('',#1,#10); 21#12=EDGE_CURVE('',#2,#4,#11,.T.); 22#13=DIRECTION('',(-1.0,-1.0,-1.0)); 23#14=VECTOR('',#13,1.0); 24#15=LINE('',#1,#14); 25#16=EDGE_CURVE('',#2,#6,#15,.T.); 26#17=DIRECTION('',(1.0,-1.0,-1.0)); 27#18=VECTOR('',#17,1.0); 28#19=LINE('',#1,#18); 29#20=EDGE_CURVE('',#2,#8,#19,.T.); 30#21=DIRECTION('',(-1.0,-2.0,0.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#3,#22); 33#24=EDGE_CURVE('',#4,#6,#23,.T.); 34#25=DIRECTION('',(2.0,0.0,0.0)); 35#26=VECTOR('',#25,1.0); 36#27=LINE('',#5,#26); 37#28=EDGE_CURVE('',#6,#8,#27,.T.); 38#29=DIRECTION('',(-1.0,2.0,0.0)); 39#30=VECTOR('',#29,1.0); 40#31=LINE('',#7,#30); 41#32=EDGE_CURVE('',#8,#4,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#12,.T.); 43#34=ORIENTED_EDGE('',$,$,#24,.T.); 44#35=ORIENTED_EDGE('',$,$,#16,.F.); 45#36=EDGE_LOOP('',(#33,#34,#35)); 46#37=DIRECTION('',(-1.0,0.0,1.0)); 47#38=DIRECTION('',(0.0,1.0,0.0)); 48#39=AXIS2_PLACEMENT_3D('',#1,#37,#38); 49#40=PLANE('',#39); 50#41=FACE_OUTER_BOUND('',#36,.T.); 51#42=ADVANCED_FACE('',(#41),#40,.T.); 52#43=ORIENTED_EDGE('',$,$,#16,.T.); 53#44=ORIENTED_EDGE('',$,$,#28,.T.); 54#45=ORIENTED_EDGE('',$,$,#20,.F.); 55#46=EDGE_LOOP('',(#43,#44,#45)); 56#47=DIRECTION('',(0.0,-1.0,1.0)); 57#48=DIRECTION('',(-1.0,0.0,0.0)); 58#49=AXIS2_PLACEMENT_3D('',#1,#47,#48); 59#50=PLANE('',#49); 60#51=FACE_OUTER_BOUND('',#46,.T.); 61#52=ADVANCED_FACE('',(#51),#50,.T.); 62#53=ORIENTED_EDGE('',$,$,#20,.T.); 63#54=ORIENTED_EDGE('',$,$,#32,.T.); 64#55=ORIENTED_EDGE('',$,$,#12,.F.); 65#56=EDGE_LOOP('',(#53,#54,#55)); 66#57=DIRECTION('',(1.0,1.0,1.0)); 67#58=DIRECTION('',(0.0,1.0,0.0)); 68#59=AXIS2_PLACEMENT_3D('',#1,#57,#58); 69#60=PLANE('',#59); 70#61=FACE_OUTER_BOUND('',#56,.T.); 71#62=ADVANCED_FACE('',(#61),#60,.T.); 72#63=CLOSED_SHELL('',(#42,#52,#62)); 73#64=SHELL_BASED_SURFACE_MODEL('',(#63)); 74#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 75#9051=PRODUCT('Tsh228','Tsh228','',(#9050)); 76#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 77#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 78#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 79#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 80#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 81#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 82#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 83#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 84#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 85#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#64),#9060); 86#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 87ENDSEC; 88END-ISO-10303-21;