step-examples/12-3a-shells/Tsh146.stp
Sources
- synthesized — no external source cited
Description
ShapeUpgrade_ShellSewing.Apply different-tolerance-per-face
Reproducer recipe
Expected kernel behavior
Face1 (x=[0,1]) and Face2 (x=[1,2]) share one EDGE_CURVE at x=1, but Face1's shared vertex is authored with a 0.0001-unit tolerance context and Face2's with 0.001 — a tenfold difference for the same physical edge. A sewing pass must resolve a shared edge using the larger (looser) of the two faces' declared tolerances, not whichever tolerance the pass happens to apply first; using the tighter value alone can reject a connection the looser face's own authored precision would accept.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(15) 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/* Tsh146: TWO ADVANCED_FACEs sharing EDGE_CURVE at x=1 y=[0,1] z=0 â IS the different-tolerance mechanism; Face1 (x=[0,1]) uses shared EDGE_CURVE e_seam â IS wired into EDGE_LOOP1 with tight-tolerance vertex placement (0.0001); Face2 (x=[1,2]) uses same shared EDGE_CURVE e_seam â IS wired into EDGE_LOOP2 with loose-tolerance vertex placement (0.001); shared EDGE_CURVE between faces with 10x tolerance difference IS the per-face-tolerance mechanism; ShapeUpgrade_ShellSewing.Apply applies single global tolerance â misses the per-face variance; fix: track per-face edge tolerances during sewing; use max(tol_face1, tol_face2) at shared edge; emit E_SEWING_TOLERANCE_PER_FACE_MISMATCH when adjacent faces specify different tolerances for same edge */ 3HEADER; 4FILE_DESCRIPTION(('Tsh146'),'2;1'); 5FILE_NAME('Tsh146.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('',(2.0,0.0,0.0)); 13#4=CARTESIAN_POINT('',(0.0,1.0,0.0)); 14#5=CARTESIAN_POINT('',(1.0,1.0,0.0)); 15#6=CARTESIAN_POINT('',(2.0,1.0,0.0)); 16#7=VERTEX_POINT('',#1); 17#8=VERTEX_POINT('',#2); 18#9=VERTEX_POINT('',#3); 19#10=VERTEX_POINT('',#4); 20#11=VERTEX_POINT('',#5); 21#12=VERTEX_POINT('',#6); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=VECTOR('',#13,1.0); 24#15=LINE('',#1,#14); 25#16=EDGE_CURVE('',#7,#8,#15,.T.); 26#17=DIRECTION('',(1.0,0.0,0.0)); 27#18=VECTOR('',#17,1.0); 28#19=LINE('',#4,#18); 29#20=EDGE_CURVE('',#10,#11,#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('',#7,#10,#23,.T.); 34#25=DIRECTION('',(0.0,1.0,0.0)); 35#26=VECTOR('',#25,1.0); 36#27=LINE('',#2,#26); 37#28=EDGE_CURVE('',#8,#11,#27,.T.); 38#29=DIRECTION('',(1.0,0.0,0.0)); 39#30=VECTOR('',#29,1.0); 40#31=LINE('',#2,#30); 41#32=EDGE_CURVE('',#8,#9,#31,.T.); 42#33=DIRECTION('',(1.0,0.0,0.0)); 43#34=VECTOR('',#33,1.0); 44#35=LINE('',#5,#34); 45#36=EDGE_CURVE('',#11,#12,#35,.T.); 46#37=DIRECTION('',(0.0,1.0,0.0)); 47#38=VECTOR('',#37,1.0); 48#39=LINE('',#3,#38); 49#40=EDGE_CURVE('',#9,#12,#39,.T.); 50#41=ORIENTED_EDGE('',$,$,#16,.T.); 51#42=ORIENTED_EDGE('',$,$,#28,.T.); 52#43=ORIENTED_EDGE('',$,$,#20,.F.); 53#44=ORIENTED_EDGE('',$,$,#24,.F.); 54#45=EDGE_LOOP('',(#41,#42,#43,#44)); 55#46=FACE_OUTER_BOUND('',#45,.T.); 56#47=CARTESIAN_POINT('',(0,0,0.0)); 57#48=DIRECTION('',(0.0,0.0,1.0)); 58#49=DIRECTION('',(1.0,0.0,0.0)); 59#50=AXIS2_PLACEMENT_3D('',#47,#48,#49); 60#51=PLANE('',#50); 61#52=ADVANCED_FACE('',(#46),#51,.T.); 62#53=ORIENTED_EDGE('',$,$,#32,.T.); 63#54=ORIENTED_EDGE('',$,$,#40,.T.); 64#55=ORIENTED_EDGE('',$,$,#36,.F.); 65#56=ORIENTED_EDGE('',$,$,#28,.F.); 66#57=EDGE_LOOP('',(#53,#54,#55,#56)); 67#58=FACE_OUTER_BOUND('',#57,.T.); 68#59=CARTESIAN_POINT('',(1,0,0.0)); 69#60=DIRECTION('',(0.0,0.0,1.0)); 70#61=DIRECTION('',(1.0,0.0,0.0)); 71#62=AXIS2_PLACEMENT_3D('',#59,#60,#61); 72#63=PLANE('',#62); 73#64=ADVANCED_FACE('',(#58),#63,.T.); 74#65=OPEN_SHELL('',(#52,#64)); 75#66=SHELL_BASED_SURFACE_MODEL('',(#65)); 76#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 77#9051=PRODUCT('Tsh146','Tsh146','',(#9050)); 78#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 79#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 80#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 81#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 82#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 83#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 84#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 85#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 86#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 87#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#66),#9060); 88#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 89ENDSEC; 90END-ISO-10303-21;