step-examples/12-8-mixed/M173.stp
Sources
- 16-iso-spec ISO 10303-238 §6.2 milling_toolpath sample-density invariant
- bug-reporter language: "AP238 toolpath samples too sparse", "STEP-NC milling skips between points", "uncut islands between toolpath samples".
Description
A `MILLING_TOOLPATH` lists consecutive points spaced 12 mm apart while the tool diameter is 6 mm. Linear interpolation between samples leaves stock between passes; the toolpath has no implicit guarantee of contiguous engagement. Controllers either over-feed (gouging) or leave uncut islands. Bug-reporter language: "AP238 milling sample distance > tool dia", "STEP-NC toolpath skips", "uncut stock between samples".
Reproducer recipe
a `MILLING_CUTTING_TOOL` with diameter 6 mm; a `MILLING_TOOLPATH` whose underlying `POLYLINE` has points 12 mm apart.
Expected kernel behavior
validate sample-density against tool diameter; warn or refine the path before emission.
Notes
Synonyms: "AP238 toolpath sample gap > tool diameter", "STEP-NC sparse milling samples", "milling path discontinuity", "toolpath leaves uncut between points".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'MILLING_TOOLPATH')contains(b'MILLING_CUTTING_TOOL')
Tier-3 assertions
shape_null == Falsen_edges_total == 1n_vertices_total == 2
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M173: AP238 milling_toolpath consecutive points spaced beyond tool diameter */ 3/* DEFECT: MILLING_TOOLPATH points 12.0mm apart; MILLING_CUTTING_TOOL diameter 6.0mm */ 4/* Ratio 2.0 â linear interpolation leaves 6mm uncut stock between samples */ 5/* Controllers over-feed (gouge) or leave uncut islands between consecutive samples */ 6/* Per ISO 10303-238 §6.2 milling toolpath sample spacing must not exceed tool diameter */ 7/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 8/* Byte assertion: contains(b'MILLING_TOOLPATH') */ 9/* Byte assertion: contains(b'MILLING_CUTTING_TOOL') */ 10HEADER; 11FILE_DESCRIPTION(('M173: AP238 milling_toolpath sample spacing 12mm exceeds tool diameter 6mm'),'2;1'); 12FILE_NAME('M173.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 13/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 14FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 3 1 1 1 }')); 15ENDSEC; 16DATA; 17/* Standard unit context (mm) */ 18#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 22 'distance_accuracy_value','maximum model space distance between geometric entities'); 23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 24 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 25 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 26 REPRESENTATION_CONTEXT('ctx','3D')); 27/* mm length unit reference for MEASURE_WITH_UNIT */ 28#15=SI_UNIT(.MILLI.,.METRE.); 29/* POLYLINE backing the sparse toolpath â four points 12mm apart */ 30/* Point spacing 12.0mm >> tool diameter 6.0mm: leaves uncut stock between samples */ 31#30=CARTESIAN_POINT('sample_0',(0.0,0.0,0.0)); 32#31=CARTESIAN_POINT('sample_1',(12.0,0.0,0.0)); 33#32=CARTESIAN_POINT('sample_2',(24.0,0.0,0.0)); 34#33=CARTESIAN_POINT('sample_3',(36.0,0.0,0.0)); 35#34=POLYLINE('sparse_path_polyline',(#30,#31,#32,#33)); 36/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 37#20=GEOMETRIC_CURVE_SET('ap238-milling-toolpath-sample-spacing-12mm-exceeds-tool-dia-6mm', 38 (#34,#52,#54,#60)); 39/* WORKPLAN 'sparse_mill_program' â AP238 top-level NC program */ 40#50=WORKPLAN('sparse_mill_program','Sparse milling toolpath workplan',(),$,(#51)); 41/* MACHINING_WORKINGSTEP links workpiece to milling operation */ 42#51=MACHINING_WORKINGSTEP('sparse_mill_step','Sparse milling workingstep',#52,#60,$); 43/* Byte assertion: contains(b'MILLING_CUTTING_TOOL') */ 44/* MILLING_CUTTING_TOOL 'mill_6mm': cutter diameter = 6.0mm */ 45#55=MEASURE_WITH_UNIT(POSITIVE_LENGTH_MEASURE(6.0),#15); 46#54=MILLING_CUTTING_TOOL('mill_6mm',$,#55,$,$,$,$,$,$); 47/* Byte assertion: contains(b'MILLING_TOOLPATH') */ 48/* DEFECT: MILLING_TOOLPATH backed by POLYLINE with 12mm spacing > 6mm diameter */ 49#52=MILLING_TOOLPATH('sparse_mill_path',#34,$,#54,$); 50/* WORKPIECE 'mill_workpiece' */ 51#60=WORKPIECE('mill_workpiece','Milling workpiece for sparse toolpath test',$,$,$,$,$); 52/* Product chain */ 53#100=APPLICATION_CONTEXT('mechanical design'); 54#101=PRODUCT_CONTEXT('',#100,'mechanical'); 55#102=PRODUCT('M173','M173','M173',(#101)); 56#103=PRODUCT_DEFINITION_FORMATION('','',#102); 57#104=PRODUCT_DEFINITION_CONTEXT(#100,'design'); 58#105=PRODUCT_DEFINITION('','',#103,#104); 59#106=PRODUCT_DEFINITION_SHAPE('','',#105); 60#107=SHAPE_REPRESENTATION('',(#20),#14); 61#108=SHAPE_DEFINITION_REPRESENTATION(#106,#107); 62ENDSEC; 63END-ISO-10303-21;