step-examples/12-4-tolerance/N078.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Edge.FixSameParameter precision-floor
Reproducer recipe
Expected kernel behavior
accept, with a floor: the single edge is ordinary (unit length, straight line); the declared tolerance is 1.0E-15mm, which is below double-precision's representable relative resolution at unit-coordinate scale (~2.2e-16 absolute ULP, i.e. only ~4-5 representable steps of headroom). A correct kernel should clamp such a sub-working-precision declared tolerance up to a sane floor (documented, not silently invented) and report the clamp, rather than either pretending to honor 1e-15mm literally or silently substituting an undocumented larger value.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* N078: FixSameParameter precision-floor: edge (0,0,0)â(1,0,0); ultra-tight tolerance 1e-15 clamped to 1e-7 floor; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N078'),'2;1'); 5FILE_NAME('N078.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('p_start',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('p_end',(1.0,0.0,0.0)); 11#3=VERTEX_POINT('v_start',#1); 12#4=VERTEX_POINT('v_end',#2); 13#5=DIRECTION('',(1.0,0.0,0.0)); 14#6=VECTOR('',#5,1.0); 15#7=LINE('unit_line',#1,#6); 16#8=EDGE_CURVE('edge_ultra_tight',#3,#4,#7,.T.); 17#9=GEOMETRIC_CURVE_SET('ultra_tight_tol',(#8)); 18#10=APPLICATION_CONTEXT('automotive_design'); 19#11=PRODUCT_CONTEXT('',#10,'mechanical'); 20#12=PRODUCT('N078','N078','',(#11)); 21#13=PRODUCT_DEFINITION_FORMATION('','',#12); 22#14=PRODUCT_DEFINITION_CONTEXT('part definition',#10,'design'); 23#15=PRODUCT_DEFINITION('','',#13,#14); 24#16=PRODUCT_DEFINITION_SHAPE('','',#15); 25#17=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 26#18=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 27#19=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 28#20=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-15),#17,'distance_accuracy_value','ultra_tight_edge_tol'); 29#21=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#20))GLOBAL_UNIT_ASSIGNED_CONTEXT((#17,#18,#19))REPRESENTATION_CONTEXT('ctx','3D')); 30#22=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#9),#21); 31#23=SHAPE_DEFINITION_REPRESENTATION(#16,#22); 32ENDSEC; 33END-ISO-10303-21;