step-examples/12-3a-shells/Tsh135.stp
Sources
- synthesized — no external source cited
Description
ShapeUpgrade_ShellSewing.Apply face-with-multiple-edges-to-merge
Reproducer recipe
Expected kernel behavior
The two faces share three edges along their common boundary, all coincident within tolerance, but only the first pair is wired to the same EDGE_CURVE entity; the other two pairs are separate, unmerged EDGE_CURVEs at matching coordinates. A sewing pass must check every candidate edge pair along a shared boundary independently rather than stopping after merging the first match — partial sewing (one shared edge merged, two left duplicated) leaves the shell in a worse, inconsistent state than either fully sewn or fully unsewn.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(14) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 2
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tsh135: Two faces each with three edges that should all sew but only first is merged */ 3HEADER; 4FILE_DESCRIPTION(('Tsh135'),'2;1'); 5FILE_NAME('Tsh135.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.5,1.0,0.0)); 13#4=VERTEX_POINT('',#1); 14#5=VERTEX_POINT('',#2); 15#6=VERTEX_POINT('',#3); 16#7=DIRECTION('',(1.0,0.0,0.0)); 17#8=VECTOR('',#7,1.0); 18#9=LINE('',#1,#8); 19#10=EDGE_CURVE('',#4,#5,#9,.T.); 20#11=DIRECTION('',(-0.5,1.0,0.0)); 21#12=VECTOR('',#11,1.11803398875); 22#13=LINE('',#2,#12); 23#14=EDGE_CURVE('',#5,#6,#13,.T.); 24#15=DIRECTION('',(-0.5,-1.0,0.0)); 25#16=VECTOR('',#15,1.11803398875); 26#17=LINE('',#3,#16); 27#18=EDGE_CURVE('',#6,#4,#17,.T.); 28#19=ORIENTED_EDGE('',$,$,#10,.T.); 29#20=ORIENTED_EDGE('',$,$,#14,.T.); 30#21=ORIENTED_EDGE('',$,$,#18,.T.); 31#22=EDGE_LOOP('',(#19,#20,#21)); 32#23=VERTEX_POINT('',#1); 33#24=VERTEX_POINT('',#2); 34#25=VERTEX_POINT('',#3); 35#26=DIRECTION('',(-1.0,0.0,0.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('',#2,#27); 38#29=EDGE_CURVE('',#24,#23,#28,.T.); 39#30=DIRECTION('',(0.5,-1.0,0.0)); 40#31=VECTOR('',#30,1.11803398875); 41#32=LINE('',#3,#31); 42#33=EDGE_CURVE('',#25,#24,#32,.T.); 43#34=DIRECTION('',(0.5,1.0,0.0)); 44#35=VECTOR('',#34,1.11803398875); 45#36=LINE('',#1,#35); 46#37=EDGE_CURVE('',#23,#25,#36,.T.); 47#38=ORIENTED_EDGE('',$,$,#29,.T.); 48#39=ORIENTED_EDGE('',$,$,#33,.T.); 49#40=ORIENTED_EDGE('',$,$,#37,.T.); 50#41=EDGE_LOOP('',(#38,#39,#40)); 51#42=CARTESIAN_POINT('',(0.0,0.0,0.0)); 52#43=DIRECTION('',(0.0,0.0,1.0)); 53#44=DIRECTION('',(1.0,0.0,0.0)); 54#45=AXIS2_PLACEMENT_3D('',#42,#43,#44); 55#46=PLANE('',#45); 56#47=FACE_OUTER_BOUND('',#22,.T.); 57#48=ADVANCED_FACE('',(#47),#46,.T.); 58#49=FACE_OUTER_BOUND('',#41,.T.); 59#50=ADVANCED_FACE('',(#49),#46,.T.); 60#51=OPEN_SHELL('',(#48,#50)); 61#52=SHELL_BASED_SURFACE_MODEL('',(#51)); 62#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 63#9051=PRODUCT('Tsh135','Tsh135','',(#9050)); 64#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 65#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 66#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 67#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 68#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 69#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 70#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 71#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 72#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 73#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#52),#9060); 74#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 75ENDSEC; 76END-ISO-10303-21;