step-examples/12-4-tolerance/N059.stp
Sources
- synthesized — no external source cited
Description
BRepLib.UpdateEdgeTol sampling-grid undersample
Reproducer recipe
Expected kernel behavior
accept: the closed 2-edge face (B-spline arc + straight closing edge) is well-formed at the declared 1.0E-7mm tolerance. Sample-count-related deviation underestimation on a B-spline is a property of a specific tolerance-computation algorithm's internal sampling density, not something a static Part-21 file can encode or trigger -- a correct kernel just needs its own curve-deviation sampling to be adaptive (denser near curvature peaks) rather than fixed-count, independent of what this file declares.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(5) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* N059: B-spline edge bspline_high_curvature with degree-3 cubic and 5 control points; peak curvature near u=0.48 falls between 23 default samples; UpdateEdgeTol underestimates maximum 3D-vs-2D curve deviation */ 3HEADER; 4FILE_DESCRIPTION(('N059'),'2;1'); 5FILE_NAME('N059.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('cp0',(0.0,0.0,0.0)); 11#2=CARTESIAN_POINT('cp1',(1.0,0.0,0.0)); 12#3=CARTESIAN_POINT('cp2',(2.0,1.0,0.0)); 13#4=CARTESIAN_POINT('cp3',(3.0,0.5,0.0)); 14#5=CARTESIAN_POINT('cp4',(4.0,0.0,0.0)); 15#6=VERTEX_POINT('v_start',#1); 16#7=VERTEX_POINT('v_end',#5); 17#8=B_SPLINE_CURVE_WITH_KNOTS('bspline_high_curvature',3,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.F.,.F.,(4,1,4),(0.0,0.5,1.0),.UNSPECIFIED.); 18#9=EDGE_CURVE('bspline_edge',#6,#7,#8,.T.); 19#10=DIRECTION('negx',(-1.0,0.0,0.0)); 20#11=VECTOR('negxvec',#10,4.0); 21#12=LINE('close_line',#5,#11); 22#13=EDGE_CURVE('close_edge',#7,#6,#12,.T.); 23#14=ORIENTED_EDGE('',$,$,#9,.T.); 24#15=ORIENTED_EDGE('',$,$,#13,.T.); 25#16=EDGE_LOOP('',(#14,#15)); 26#17=FACE_OUTER_BOUND('',#16,.T.); 27#18=DIRECTION('zdir',(0.0,0.0,1.0)); 28#19=DIRECTION('xdir',(1.0,0.0,0.0)); 29#20=AXIS2_PLACEMENT_3D('ax3',#1,#18,#19); 30#21=PLANE('plane_xy',#20); 31#22=ADVANCED_FACE('face_on_plane',(#17),#21,.T.); 32#23=OPEN_SHELL('shell1',(#22)); 33#24=SHELL_BASED_SURFACE_MODEL('sbsm',(#23)); 34#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 35#9051=PRODUCT('N059','N059','',(#9050)); 36#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 37#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 38#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 39#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 40#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 41#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 42#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 43#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 44#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 45#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#24),#9060); 46#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 47ENDSEC; 48END-ISO-10303-21;