step-examples/12-4-tolerance/Tb011.stp
Sources
- synthesized time-bomb.
Description
A `CYLINDRICAL_SURFACE` of radius 1e6 mm has period 2π·R ≈ 6.28e6. A wire's pcurve U-coordinates differ by `2π + 1e-3` between consecutive edges (one period plus a small drift). A kernel using *fixed* parametric tolerance (e.g. 1e-7 rad) rejects the seam as misaligned. A kernel using `fmod(diff, 2π)` semantics absorbs the period and reports alignment within 1e-3. The same wire is closed or not depending on whose arithmetic policy.
Reproducer recipe
`CYLINDRICAL_SURFACE` with R = 1e6 mm; a `FACE_OUTER_BOUND` whose two consecutive `EDGE_CURVE`s have pcurve endpoints differing by exactly `2π + 1e-3` rad in U. Wrap in PRODUCT chain.
Expected kernel behavior
Heal and accept: seam-matching policy is documented and consistent; on a periodic surface, normalize "same modulo period" as the canonical equality.
Notes
Searchable as "cylinder seam not closed", "huge cylinder broken. Synonyms: "large-radius cylinder seam matching needs scaled tolerance", "absolute tolerance too tight for large period", "seam compare ignores period scaling", "huge cylinder fails seam match under fixed tolerance". pcurve". **See also**: Twi-XX (the "wire closed in 3D, open in UV" entry).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CYLINDRICAL_SURFACE')count_entity_def(b'PCURVE') == 2contains(b'1.0E-3')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tb011: CYLINDRICAL_SURFACE R=1.0E6; pcurve U-coords differ by 2*pi+1.0E-3 (one period plus drift); fixed 1.0E-7 rad tolerance rejects seam; fmod(diff,2*pi) policy accepts it; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Tb011'),'2;1'); 5FILE_NAME('Tb011.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('axis_origin',(0.0,0.0,0.0)); 10#2=DIRECTION('',(0.0,0.0,1.0)); 11#3=DIRECTION('',(1.0,0.0,0.0)); 12#4=AXIS2_PLACEMENT_3D('axis',#1,#2,#3); 13#5=CYLINDRICAL_SURFACE('huge_cyl',#4,1.0E6); 14#6=CARTESIAN_POINT('p0_at_u0',(1000000.0,0.0,0.0)); 15#7=CARTESIAN_POINT('p1_at_u_2pi_plus_1e-3',(1000000.0,1000.0,0.0)); 16#8=CARTESIAN_POINT('p2_continuation',(1000000.0,0.0,1000.0)); 17#9=VERTEX_POINT('v0',#6); 18#10=VERTEX_POINT('v1_seam_drift',#7); 19#11=VERTEX_POINT('v2',#8); 20#12=DIRECTION('',(0.0,1.0,0.0)); 21#13=VECTOR('',#12,1000.0); 22#14=LINE('',#6,#13); 23#15=DIRECTION('',(0.0,-1.0,0.0)); 24#16=VECTOR('',#15,1.0); 25#17=LINE('',#7,#16); 26#18=(GEOMETRIC_REPRESENTATION_CONTEXT(2)GLOBAL_UNIT_ASSIGNED_CONTEXT($)REPRESENTATION_CONTEXT('uv_ctx','2D')); 27#19=CARTESIAN_POINT('uv0',(0.0,0.0)); 28#20=DIRECTION('',(1.0,0.0)); 29#21=VECTOR('',#20,6.28418530718); 30#22=LINE('uv_line1',#19,#21); 31#23=DEFINITIONAL_REPRESENTATION('def1',(#22),#18); 32#24=PCURVE('pc1',#5,#23); 33#25=SURFACE_CURVE('sc1',#14,(#24),.PCURVE_S1.); 34#26=EDGE_CURVE('e_period_plus_1e-3',#9,#10,#25,.T.); 35#27=CARTESIAN_POINT('uv1',(6.28418530718,0.0)); 36#28=DIRECTION('',(-1.0,0.0)); 37#29=VECTOR('',#28,6.28318530718); 38#30=LINE('uv_line2',#27,#29); 39#31=DEFINITIONAL_REPRESENTATION('def2',(#30),#18); 40#32=PCURVE('pc2',#5,#31); 41#33=SURFACE_CURVE('sc2',#17,(#32),.PCURVE_S1.); 42#34=EDGE_CURVE('e_back_to_seam',#10,#11,#33,.T.); 43#35=GEOMETRIC_CURVE_SET('cs',(#26,#34,#5)); 44#36=APPLICATION_CONTEXT('automotive_design'); 45#37=PRODUCT_CONTEXT('',#36,'mechanical'); 46#38=PRODUCT('Tb011','Tb011','',(#37)); 47#39=PRODUCT_DEFINITION_FORMATION('','',#38); 48#40=PRODUCT_DEFINITION_CONTEXT('part definition',#36,'design'); 49#41=PRODUCT_DEFINITION('','',#39,#40); 50#42=PRODUCT_DEFINITION_SHAPE('','',#41); 51#43=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 52#44=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 53#45=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 54#46=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#43,'distance_accuracy_value','tol_below_seam_drift'); 55#47=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#46))GLOBAL_UNIT_ASSIGNED_CONTEXT((#43,#44,#45))REPRESENTATION_CONTEXT('ctx_3d','3D')); 56#48=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#35),#47); 57#49=SHAPE_DEFINITION_REPRESENTATION(#42,#48); 58ENDSEC; 59END-ISO-10303-21;