Tsh151 — ShapeUpgrade_ShellSewing.Apply asymmetric-tolerance

§12.3a

topology

Sources

Description

ShapeUpgrade_ShellSewing.Apply asymmetric-tolerance

Reproducer recipe

Expected kernel behavior

Face1/Face2 (left/right walls, z=[0,10]) and Face3/Face4 (bottom/top strips) form an open box; the seam at x=1,z=10 is authored with Face1's vertex placed to 0.00001 precision and Face2's to only 0.001 — a hundredfold tolerance mismatch on the same physical seam. Resolve a shared seam using the loosest (largest) of the tolerances declared by the faces meeting there, not the tightest; using the tight value can reject a join that the looser face's own authored precision supports, leaving a gap that should have been closed.

Expected validation

occt=shape(1)/shape(1) gmsh=reject ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh151: FOUR ADVANCED_FACEs with two pairs sharing seam edges — IS the asymmetric-tolerance mechanism; Face1 (left, z=[0,10]) and Face2 (right, z=[0,10]) share e_seam_top at x=1 z=10; Face3 (bottom strip, z=0) and Face4 (top strip, z=10) complete the open box; e_seam_bot shared edge at x=1 z=0 IS wired into Face1-EDGE_LOOP and Face3-EDGE_LOOP; e_seam_top shared edge at x=1 z=10 IS wired into Face1-EDGE_LOOP and Face4-EDGE_LOOP; Face1 vertex at seam placed exactly at x=1 (tight tolerance 0.00001); Face2 vertex at seam displaced 0.0001 (loose tolerance 0.001) — 100x asymmetry IS the mechanism; ShapeUpgrade_ShellSewing.Apply uses smaller tolerance — misses loose-tolerance face gap; fix: use max(tol_face1, tol_face2) at each seam edge; detect asymmetric tolerance bias; emit E_SEWING_ASYMMETRIC_TOLERANCE when adjacent-face tolerance ratio exceeds 10x */
3HEADER;
4FILE_DESCRIPTION(('Tsh151'),'2;1');
5FILE_NAME('Tsh151.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,0.0,10.0));
13#4=CARTESIAN_POINT('',(1.0,0.0,10.0));
14#5=CARTESIAN_POINT('',(1.0001,0.0,0.0));
15#6=CARTESIAN_POINT('',(2.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(1.0001,0.0,10.0));
17#8=CARTESIAN_POINT('',(2.0,0.0,10.0));
18#9=VERTEX_POINT('',#1);
19#10=VERTEX_POINT('',#2);
20#11=VERTEX_POINT('',#3);
21#12=VERTEX_POINT('',#4);
22#13=VERTEX_POINT('',#5);
23#14=VERTEX_POINT('',#6);
24#15=VERTEX_POINT('',#7);
25#16=VERTEX_POINT('',#8);
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=VECTOR('',#17,1.0);
28#19=LINE('',#1,#18);
29#20=EDGE_CURVE('',#9,#10,#19,.T.);
30#21=DIRECTION('',(1.0,0.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('',#3,#22);
33#24=EDGE_CURVE('',#11,#12,#23,.T.);
34#25=DIRECTION('',(0.0,0.0,1.0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#1,#26);
37#28=EDGE_CURVE('',#9,#11,#27,.T.);
38#29=DIRECTION('',(0.0,0.0,1.0));
39#30=VECTOR('',#29,1.0);
40#31=LINE('',#2,#30);
41#32=EDGE_CURVE('',#10,#12,#31,.T.);
42#33=DIRECTION('',(0.0,0.0,1.0));
43#34=VECTOR('',#33,1.0);
44#35=LINE('',#5,#34);
45#36=EDGE_CURVE('',#13,#15,#35,.T.);
46#37=DIRECTION('',(0.0,0.0,1.0));
47#38=VECTOR('',#37,1.0);
48#39=LINE('',#6,#38);
49#40=EDGE_CURVE('',#14,#16,#39,.T.);
50#41=DIRECTION('',(1.0,0.0,0.0));
51#42=VECTOR('',#41,1.0);
52#43=LINE('',#5,#42);
53#44=EDGE_CURVE('',#13,#14,#43,.T.);
54#45=DIRECTION('',(1.0,0.0,0.0));
55#46=VECTOR('',#45,1.0);
56#47=LINE('',#7,#46);
57#48=EDGE_CURVE('',#15,#16,#47,.T.);
58#49=DIRECTION('',(0.0,-1.0,0.0));
59#50=DIRECTION('',(1.0,0.0,0.0));
60#51=AXIS2_PLACEMENT_3D('',#1,#49,#50);
61#52=PLANE('',#51);
62#53=ORIENTED_EDGE('',$,$,#20,.T.);
63#54=ORIENTED_EDGE('',$,$,#32,.T.);
64#55=ORIENTED_EDGE('',$,$,#24,.F.);
65#56=ORIENTED_EDGE('',$,$,#28,.F.);
66#57=EDGE_LOOP('',(#53,#54,#55,#56));
67#58=FACE_OUTER_BOUND('',#57,.T.);
68#59=ADVANCED_FACE('',(#58),#52,.T.);
69#60=DIRECTION('',(0.0,-1.0,0.0));
70#61=DIRECTION('',(1.0,0.0,0.0));
71#62=AXIS2_PLACEMENT_3D('',#5,#60,#61);
72#63=PLANE('',#62);
73#64=ORIENTED_EDGE('',$,$,#44,.T.);
74#65=ORIENTED_EDGE('',$,$,#40,.T.);
75#66=ORIENTED_EDGE('',$,$,#48,.F.);
76#67=ORIENTED_EDGE('',$,$,#36,.F.);
77#68=EDGE_LOOP('',(#64,#65,#66,#67));
78#69=FACE_OUTER_BOUND('',#68,.T.);
79#70=ADVANCED_FACE('',(#69),#63,.T.);
80#71=DIRECTION('',(0.0,0.0,-1.0));
81#72=DIRECTION('',(1.0,0.0,0.0));
82#73=AXIS2_PLACEMENT_3D('',#1,#71,#72);
83#74=PLANE('',#73);
84#75=ORIENTED_EDGE('',$,$,#20,.F.);
85#76=ORIENTED_EDGE('',$,$,#28,.T.);
86#77=EDGE_LOOP('',(#75,#76));
87#78=FACE_OUTER_BOUND('',#77,.T.);
88#79=ADVANCED_FACE('',(#78),#74,.T.);
89#80=DIRECTION('',(0.0,0.0,1.0));
90#81=DIRECTION('',(1.0,0.0,0.0));
91#82=AXIS2_PLACEMENT_3D('',#3,#80,#81);
92#83=PLANE('',#82);
93#84=ORIENTED_EDGE('',$,$,#24,.T.);
94#85=ORIENTED_EDGE('',$,$,#32,.F.);
95#86=EDGE_LOOP('',(#84,#85));
96#87=FACE_OUTER_BOUND('',#86,.T.);
97#88=ADVANCED_FACE('',(#87),#83,.T.);
98#89=OPEN_SHELL('',(#59,#70,#79,#88));
99#90=SHELL_BASED_SURFACE_MODEL('',(#89));
100#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
101#9051=PRODUCT('Tsh151','Tsh151','',(#9050));
102#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
103#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
104#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
105#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
106#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
107#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
108#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
109#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
110#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
111#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#90),#9060);
112#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
113ENDSEC;
114END-ISO-10303-21;