step-examples/12-4-tolerance/N048.stp
Sources
- OCCT MANTIS#0026554 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A surface-surface intersection algorithm walks along the intersection curve in fixed-size parameter steps, ignoring the surfaces' tolerances. On a coarse-tolerance shape (1e-3) the steps overshoot the tolerance, producing a coarse polyline that is then mistakenly accepted as the intersection curve.
Reproducer recipe
Two cylinders intersecting at a curve; cylinders have tolerance 1e-3. Algorithm walks at step 1e-7 (way over-sampled, slow) or step 1e-1 (under-sampled, wrong curve).
Expected kernel behavior
Heal and accept: walking step adapts to surface curvature and tolerance; emit fewer / more samples to maintain tolerance-bounded deviation.
Notes
**See also**: N046. Synonyms: "surface intersection walks with fixed step", "walk step ignores tolerance", "intersection algorithm uses constant initial step", "walking step unrelated to working precision".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'INTERSECTION_CURVE')count_entity_def(b'CYLINDRICAL_SURFACE') == 2count_entity_def(b'PCURVE') == 2
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* N048: surface-surface walk: 2 CYLINDRICAL_SURFACE at coarse tol 1e-3; fixed walk step ignores tol; INTERSECTION_CURVE with 2 PCURVE; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N048'),'2;1'); 5FILE_NAME('N048.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('c1_orig',(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('',#1,#2,#3); 13#5=CYLINDRICAL_SURFACE('cyl1',#4,5.0); 14#6=CARTESIAN_POINT('c2_orig',(5.0,0.0,0.0)); 15#7=DIRECTION('',(1.0,0.0,0.0)); 16#8=DIRECTION('',(0.0,1.0,0.0)); 17#9=AXIS2_PLACEMENT_3D('',#6,#7,#8); 18#10=CYLINDRICAL_SURFACE('cyl2',#9,5.0); 19#11=(GEOMETRIC_REPRESENTATION_CONTEXT(2)GLOBAL_UNIT_ASSIGNED_CONTEXT($)REPRESENTATION_CONTEXT('uv_ctx','2D')); 20#12=CARTESIAN_POINT('pc1_start',(1.57079632679,0.0)); 21#13=DIRECTION('',(0.0,1.0)); 22#14=VECTOR('',#13,10.0); 23#15=LINE('pc1_line',#12,#14); 24#16=DEFINITIONAL_REPRESENTATION('pdef1',(#15),#11); 25#17=PCURVE('pc1',#5,#16); 26#18=CARTESIAN_POINT('pc2_start',(0.0,0.0)); 27#19=DIRECTION('',(0.0,1.0)); 28#20=VECTOR('',#19,10.0); 29#21=LINE('pc2_line',#18,#20); 30#22=DEFINITIONAL_REPRESENTATION('pdef2',(#21),#11); 31#23=PCURVE('pc2',#10,#22); 32#24=CARTESIAN_POINT('int_p0',(5.0,0.0,0.0)); 33#25=CARTESIAN_POINT('int_p1',(5.0,0.0,10.0)); 34#26=VERTEX_POINT('v3d_0',#24); 35#27=VERTEX_POINT('v3d_1',#25); 36#28=DIRECTION('',(0.0,0.0,1.0)); 37#29=VECTOR('',#28,10.0); 38#30=LINE('int_line',#24,#29); 39#31=INTERSECTION_CURVE('int_curve',#30,(#17,#23),.PCURVE_S1.); 40#32=EDGE_CURVE('int_edge',#26,#27,#31,.T.); 41#33=GEOMETRIC_CURVE_SET('ints',(#5,#10,#32)); 42#34=APPLICATION_CONTEXT('automotive_design'); 43#35=PRODUCT_CONTEXT('',#34,'mechanical'); 44#36=PRODUCT('N048','N048','',(#35)); 45#37=PRODUCT_DEFINITION_FORMATION('','',#36); 46#38=PRODUCT_DEFINITION_CONTEXT('part definition',#34,'design'); 47#39=PRODUCT_DEFINITION('','',#37,#38); 48#40=PRODUCT_DEFINITION_SHAPE('','',#39); 49#41=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 50#42=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 51#43=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 52#44=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#41,'distance_accuracy_value','coarse_walk_tolerance'); 53#45=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#44))GLOBAL_UNIT_ASSIGNED_CONTEXT((#41,#42,#43))REPRESENTATION_CONTEXT('ctx','3D')); 54#46=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#33),#45); 55#47=SHAPE_DEFINITION_REPRESENTATION(#40,#46); 56ENDSEC; 57END-ISO-10303-21;