step-examples/12-3a-shells/Tsh121.stp
Sources
- synthesized — no external source cited
Description
ShapeUpgrade_ShellSewing.ApplySewing tolerance-cascade
Reproducer recipe
Expected kernel behavior
Live oracle measurement: OCCT crashes (SIGSEGV) reading this file, on both the heal-on and heal-off path. Face 1 sits at z=0 and Face 2 at z=0.0001 mm, an offset one thousand times the file's declared 1e-7 distance-accuracy — well outside tolerance and therefore two genuinely separate, non-coincident faces, not a sewing candidate. A kernel must never crash on this input: compare the offset against the model's own declared tolerance before attempting any merge, and leave faces that far apart unmerged.
Notes
RUNTIME-VERIFIED 2026-08-09 — this file's recorded `signal(11)` is driven by an inline entity instance written directly inside another entity's argument list (a vector constructor carrying a bare coordinate list where a direction reference belongs). A conforming exchange file may only define entity instances as top-level numbered statements, so the reader cannot bind the inline construct, the attribute resolves to null, and the abort happens during loading — before any repair routine runs. Full census in `BACKLOG.md` (M.18).
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Byte assertions
contains(b'ADVANCED_FACE')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh121 - ShapeUpgrade_ShellSewing.ApplySewing tolerance-cascade 3 * Defect: sewing produces a shell, then a second sewing pass on that output 4 * should be a no-op but tolerance accumulates */ 5HEADER; 6FILE_DESCRIPTION(('Tsh121 - tolerance drift after repeated sewing','wave 25'),'2;1'); 7FILE_NAME('Tsh121.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','',''); 8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 9ENDSEC; 10DATA; 11#1=APPLICATION_CONTEXT('automotive_design'); 12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 13 14/* Two nearly-touching rectangular faces with tolerance issues */ 15/* Face 1: (0,0,0)-(10,0,0)-(10,10,0)-(0,10,0) */ 16/* Face 2: (0,0,0.0001)-(10,0,0.0001)-(10,10,0.0001)-(0,10,0.0001) -- offset by tolerance */ 17 18#10=CARTESIAN_POINT('',(0,0,0)); 19#11=CARTESIAN_POINT('',(10.0,0,0)); 20#12=CARTESIAN_POINT('',(10.0,10.0,0)); 21#13=CARTESIAN_POINT('',(0,10.0,0)); 22 23/* Face 2 vertices offset by tolerance */ 24#14=CARTESIAN_POINT('',(0,0,0.0001)); 25#15=CARTESIAN_POINT('',(10.0,0,0.0001)); 26#16=CARTESIAN_POINT('',(10.0,10.0,0.0001)); 27#17=CARTESIAN_POINT('',(0,10.0,0.0001)); 28 29#20=VERTEX_POINT('',#10); 30#21=VERTEX_POINT('',#11); 31#22=VERTEX_POINT('',#12); 32#23=VERTEX_POINT('',#13); 33#24=VERTEX_POINT('',#14); 34#25=VERTEX_POINT('',#15); 35#26=VERTEX_POINT('',#16); 36#27=VERTEX_POINT('',#17); 37 38/* Planes */ 39#30=AXIS2_PLACEMENT_3D('z0_plane',#10,DIRECTION('',(0,0,-1)),DIRECTION('',(1,0,0))); 40#31=PLANE('',#30); 41#32=AXIS2_PLACEMENT_3D('z_offset_plane',#14,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0))); 42#33=PLANE('',#32); 43 44/* Face 1 edges */ 45#50=LINE('',#10,VECTOR('',(1,0,0),10.0)); 46#51=EDGE_CURVE('f1_e1',#20,#21,#50,.T.); 47#52=LINE('',#11,VECTOR('',(0,1,0),10.0)); 48#53=EDGE_CURVE('f1_e2',#21,#22,#52,.T.); 49#54=LINE('',#12,VECTOR('',(-1,0,0),10.0)); 50#55=EDGE_CURVE('f1_e3',#22,#23,#54,.T.); 51#56=LINE('',#13,VECTOR('',(0,-1,0),10.0)); 52#57=EDGE_CURVE('f1_e4',#23,#20,#56,.T.); 53 54/* Face 2 edges (parallel to Face 1, offset by tolerance) */ 55#58=LINE('',#14,VECTOR('',(1,0,0),10.0)); 56#59=EDGE_CURVE('f2_e1',#24,#25,#58,.T.); 57#60=LINE('',#15,VECTOR('',(0,1,0),10.0)); 58#61=EDGE_CURVE('f2_e2',#25,#26,#60,.T.); 59#62=LINE('',#16,VECTOR('',(-1,0,0),10.0)); 60#63=EDGE_CURVE('f2_e3',#26,#27,#62,.T.); 61#64=LINE('',#17,VECTOR('',(0,-1,0),10.0)); 62#65=EDGE_CURVE('f2_e4',#27,#24,#64,.T.); 63 64/* Face 1 edge loop */ 65#80=ORIENTED_EDGE('',*,*,#51,.T.); 66#81=ORIENTED_EDGE('',*,*,#53,.T.); 67#82=ORIENTED_EDGE('',*,*,#55,.T.); 68#83=ORIENTED_EDGE('',*,*,#57,.T.); 69#84=EDGE_LOOP('f1_loop',(#80,#81,#82,#83)); 70 71/* Face 2 edge loop */ 72#85=ORIENTED_EDGE('',*,*,#59,.T.); 73#86=ORIENTED_EDGE('',*,*,#61,.T.); 74#87=ORIENTED_EDGE('',*,*,#63,.T.); 75#88=ORIENTED_EDGE('',*,*,#65,.T.); 76#89=EDGE_LOOP('f2_loop',(#85,#86,#87,#88)); 77 78/* Face bounds */ 79#100=FACE_OUTER_BOUND('',#84,.T.); 80#101=FACE_OUTER_BOUND('',#89,.T.); 81 82/* Faces */ 83#110=ADVANCED_FACE('f1',(#100),#31,.T.); 84#111=ADVANCED_FACE('f2',(#101),#33,.T.); 85 86/* Shell with tolerance-sensitive geometry */ 87#130=OPEN_SHELL('tolerance_cascade_shell',(#110,#111)); 88 89/* Mandatory PRODUCT chain */ 90#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 91#9001=PRODUCT('Tsh121','Tsh121','',(#9000)); 92#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 93#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 94#9004=PRODUCT_DEFINITION('','',#9002,#9003); 95#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 96#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 97#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 98#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 99#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 100#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 101#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#130)); 102#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 103#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 104ENDSEC; 105END-ISO-10303-21;