step-examples/12-4-tolerance/Tb012.stp
Sources
- synthesized time-bomb.
Description
A `SPHERICAL_SURFACE` has a parametric singularity at the poles (V = ±π/2). A wire passing 1e-9 below V=π/2 is at the edge of the pole singularity. A kernel that snaps "near-pole" pcurves to the pole using a fixed angular tolerance (1e-7 rad) does not snap; one using a larger working tolerance (1e-3 rad) snaps the wire onto the pole and collapses the upper face. Different kernels produce a hemisphere vs. a spherical zone.
Reproducer recipe
`SPHERICAL_SURFACE` with R=1; face with outer-bound wire at constant V = π/2 - 1e-9 (a near-pole circle).
Expected kernel behavior
Heal and accept: pole-snapping is a documented invariant; the snap threshold normalizes into diagnostics, not hidden behind working precision.
Notes
Synonyms: "sphere pole singularity breaks seam match", "v-parameter singular at pole", "pole singularity fails parametric tolerance", "sphere seam at pole has multi-valued UV".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'SPHERICAL_SURFACE') and contains(b'CIRCLE')count_entity_def(b'VERTEX_POINT') == 1contains(b'1.0E-7')
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/* Tb012: SPHERICAL_SURFACE R=1; wire pcurve at V=pi/2-1.0E-9 (just below pole); pole-snap at 1.0E-7 rad does not snap; at 1.0E-3 rad snaps and collapses face; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Tb012'),'2;1'); 5FILE_NAME('Tb012.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('o',(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('plc',#1,#2,#3); 13#5=SPHERICAL_SURFACE('sph',#4,1.0); 14#6=CARTESIAN_POINT('p_near_pole',(1.0E-09,0.0,1.0)); 15#7=VERTEX_POINT('v_near_pole_seam',#6); 16#8=(GEOMETRIC_REPRESENTATION_CONTEXT(2)GLOBAL_UNIT_ASSIGNED_CONTEXT($)REPRESENTATION_CONTEXT('uv','2D')); 17#9=CARTESIAN_POINT('uv0',(0.0,1.57079632579)); 18#10=DIRECTION('',(1.0,0.0)); 19#11=VECTOR('',#10,6.28318530718); 20#12=LINE('pcurve_near_pole',#9,#11); 21#13=DEFINITIONAL_REPRESENTATION('pdef',(#12),#8); 22#14=PCURVE('pc',#5,#13); 23#15=CARTESIAN_POINT('circ_orig',(1.0E-09,0.0,1.0)); 24#16=AXIS2_PLACEMENT_3D('circ_axis',#15,#2,#3); 25#17=CIRCLE('circ_near_pole',#16,1.0E-9); 26#18=SURFACE_CURVE('sc',#17,(#14),.PCURVE_S1.); 27#19=EDGE_CURVE('e_at_pole_minus_1e-9',#7,#7,#18,.T.); 28#20=GEOMETRIC_CURVE_SET('cs',(#19,#5)); 29#21=APPLICATION_CONTEXT('automotive_design'); 30#22=PRODUCT_CONTEXT('',#21,'mechanical'); 31#23=PRODUCT('Tb012','Tb012','',(#22)); 32#24=PRODUCT_DEFINITION_FORMATION('','',#23); 33#25=PRODUCT_DEFINITION_CONTEXT('part definition',#21,'design'); 34#26=PRODUCT_DEFINITION('','',#24,#25); 35#27=PRODUCT_DEFINITION_SHAPE('','',#26); 36#28=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 37#29=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 38#30=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 39#31=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#28,'distance_accuracy_value','strict_tolerance_no_pole_snap'); 40#32=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#31))GLOBAL_UNIT_ASSIGNED_CONTEXT((#28,#29,#30))REPRESENTATION_CONTEXT('ctx','3D')); 41#33=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#20),#32); 42#34=SHAPE_DEFINITION_REPRESENTATION(#27,#33); 43ENDSEC; 44END-ISO-10303-21;