step-examples/12-3a-shells/Tsh110.stp
Sources
- synthesized — no external source cited
Description
ShapeUpgrade_ShellSewing tolerance-scale interaction
Reproducer recipe
Expected kernel behavior
The two coplanar 5x5 faces are separated by a uniform 0.005 gap in x — five times the file's declared 1.0E-3 accuracy, and half a caller tolerance of 0.01. Treat the declared accuracy as the floor and the caller's sewing tolerance as the ceiling: merging is permitted here, but the merged edge and its vertices must have their tolerances raised to at least half the gap (0.0025) so the shell's own tolerances justify the connectivity it now claims. Merging while leaving those vertices at 1.0E-3 produces a shell asserting a join its tolerances cannot support, and must not happen silently.
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
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tsh110 - ShapeUpgrade_ShellSewing tolerance-scale interaction 3 * Defect: sewing tolerance 0.01 but vertex uncertainty 0.001; the tolerance 4 * hierarchy is unclear and Apply uses the wrong one. */ 5HEADER; 6FILE_DESCRIPTION(('Tsh110 - tolerance-scale mismatch','wave 19'),'2;1'); 7FILE_NAME('Tsh110.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','',''); 8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 9ENDSEC; 10DATA; 11#1=APPLICATION_CONTEXT('automotive_design'); 12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 13 14/* Two separate faces with gap smaller than sewing tolerance but larger than 15 vertex uncertainty */ 16 17/* Face 1: bottom-left quad */ 18#100=CARTESIAN_POINT('',(0,0,0)); 19#101=CARTESIAN_POINT('',(5.0,0,0)); 20#102=CARTESIAN_POINT('',(5.0,5.0,0)); 21#103=CARTESIAN_POINT('',(0,5.0,0)); 22 23/* Face 2: bottom-right quad with 0.005 gap (between 0.001 uncertainty and 0.01 sewing) */ 24#104=CARTESIAN_POINT('',(5.005,0,0)); 25#105=CARTESIAN_POINT('',(10.0,0,0)); 26#106=CARTESIAN_POINT('',(10.0,5.0,0)); 27#107=CARTESIAN_POINT('',(5.005,5.0,0)); 28 29/* VERTEX_POINT entities */ 30#120=VERTEX_POINT('',#100); 31#121=VERTEX_POINT('',#101); 32#122=VERTEX_POINT('',#102); 33#123=VERTEX_POINT('',#103); 34#124=VERTEX_POINT('',#104); 35#125=VERTEX_POINT('',#105); 36#126=VERTEX_POINT('',#106); 37#127=VERTEX_POINT('',#107); 38 39/* Plane for both faces */ 40#200=AXIS2_PLACEMENT_3D('',#100,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0))); 41#201=PLANE('base_plane',#200); 42 43/* Edges for Face 1 */ 44#250=LINE('',#100,VECTOR('',(1,0,0),5.0)); 45#251=EDGE_CURVE('',#120,#121,#250,.T.); 46#252=LINE('',#101,VECTOR('',(0,1,0),5.0)); 47#253=EDGE_CURVE('',#121,#122,#252,.T.); 48#254=LINE('',#102,VECTOR('',(-1,0,0),5.0)); 49#255=EDGE_CURVE('',#122,#123,#254,.T.); 50#256=LINE('',#103,VECTOR('',(0,-1,0),5.0)); 51#257=EDGE_CURVE('',#123,#120,#256,.T.); 52 53/* Edges for Face 2 */ 54#258=LINE('',#104,VECTOR('',(1,0,0),4.995)); 55#259=EDGE_CURVE('',#124,#125,#258,.T.); 56#260=LINE('',#105,VECTOR('',(0,1,0),5.0)); 57#261=EDGE_CURVE('',#125,#126,#260,.T.); 58#262=LINE('',#106,VECTOR('',(-1,0,0),4.995)); 59#263=EDGE_CURVE('',#126,#127,#262,.T.); 60#264=LINE('',#107,VECTOR('',(0,-1,0),5.0)); 61#265=EDGE_CURVE('',#127,#124,#264,.T.); 62 63/* Edge loops for Face 1 */ 64#300=ORIENTED_EDGE('',*,*,#251,.T.); 65#301=ORIENTED_EDGE('',*,*,#253,.T.); 66#302=ORIENTED_EDGE('',*,*,#255,.T.); 67#303=ORIENTED_EDGE('',*,*,#257,.T.); 68#310=EDGE_LOOP('',(#300,#301,#302,#303)); 69 70/* Edge loops for Face 2 */ 71#311=ORIENTED_EDGE('',*,*,#259,.T.); 72#312=ORIENTED_EDGE('',*,*,#261,.T.); 73#313=ORIENTED_EDGE('',*,*,#263,.T.); 74#314=ORIENTED_EDGE('',*,*,#265,.T.); 75#315=EDGE_LOOP('',(#311,#312,#313,#314)); 76 77/* Face bounds */ 78#400=FACE_OUTER_BOUND('',#310,.T.); 79#401=FACE_OUTER_BOUND('',#315,.T.); 80 81/* Faces */ 82#500=ADVANCED_FACE('face_left',(#400),#201,.T.); 83#501=ADVANCED_FACE('face_right',(#401),#201,.T.); 84 85/* Shell containing faces */ 86#601=OPEN_SHELL('sewing_gap_shell',(#500,#501)); 87 88/* Mandatory PRODUCT chain */ 89#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 90#9001=PRODUCT('Tsh110','Tsh110','',(#9000)); 91#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 92#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 93#9004=PRODUCT_DEFINITION('','',#9002,#9003); 94#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 95#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 96#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 97#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 98#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#9006,'distance_accuracy_value',''); 99#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 100#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#601)); 101#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 102#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 103ENDSEC; 104END-ISO-10303-21;