step-examples/12-8-mixed/M187.stp
Sources
- 16-iso-spec ISO 10303-238 §5.8 knurling_operation tool-resolution invariant
- bug-reporter language: "AP238 knurl pitch too fine", "STEP-NC knurling under tool resolution", "knurl spec finer than tooth spacing".
Description
A `KNURLING_OPERATION` declares a knurl pitch of 0.05 mm while the knurling tool's tooth spacing (resolution) is 0.5 mm. The tool physically cannot impress a finer pattern than its own teeth - the declared pitch is unattainable. Bug-reporter language: "AP238 knurl finer than tool", "STEP-NC knurling pitch impossible", "knurl spec below tool resolution".
Reproducer recipe
a `KNURLING_TOOL` with tooth spacing 0.5 mm; a `KNURLING_OPERATION` with knurl_pitch 0.05 mm referencing that tool.
Expected kernel behavior
validate knurl pitch against tool tooth spacing; reject as unattainable.
Notes
Synonyms: "AP238 knurl pitch < tool teeth", "STEP-NC knurling resolution exceeds tool", "knurl spec finer than tool", "knurling tool can't make finer pitch".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'KNURLING_OPERATION')contains(b'KNURLING_TOOL')
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/* M187: AP238 KNURLING_OPERATION pitch 0.05 mm finer than tool tooth spacing 0.5 mm */ 3/* DEFECT: KNURLING_TOOL tooth spacing 0.5 mm â physical resolution limit of the tool */ 4/* DEFECT: KNURLING_OPERATION knurl_pitch 0.05 mm â 10x finer than tool can achieve */ 5/* Tool cannot impress pattern finer than its own tooth spacing â pitch is unattainable */ 6/* Per ISO 10303-238 §5.8 knurling_operation tool-resolution invariant */ 7/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 8/* Byte assertion: contains(b'KNURLING_OPERATION') */ 9/* Byte assertion: contains(b'KNURLING_TOOL') */ 10HEADER; 11FILE_DESCRIPTION(('M187: AP238 KNURLING_OPERATION pitch 0.05mm finer than tool resolution 0.5mm'),'2;1'); 12FILE_NAME('M187.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/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 30#20=GEOMETRIC_CURVE_SET('ap238-knurling-pitch-finer-than-tool-resolution', 31 (#30,#40,#50,#60)); 32/* Byte assertion: contains(b'KNURLING_TOOL') */ 33/* KNURLING_TOOL 'diamond_knurl_05mm': diamond knurl, tooth spacing 0.5 mm */ 34/* Tool physical resolution limit: cannot impress pattern finer than 0.5 mm pitch */ 35#31=MEASURE_WITH_UNIT(POSITIVE_LENGTH_MEASURE(0.5),#15); 36#30=KNURLING_TOOL('diamond_knurl_05mm',$,#31,$,$,$,$,$,$); 37/* Byte assertion: contains(b'KNURLING_OPERATION') */ 38/* DEFECT: KNURLING_OPERATION knurl_pitch 0.05 mm â 10x finer than tool tooth spacing */ 39/* At 0.05 mm pitch with 0.5 mm teeth: teeth overlap â pattern unattainable */ 40#41=MEASURE_WITH_UNIT(POSITIVE_LENGTH_MEASURE(0.05),#15); 41#40=KNURLING_OPERATION('fine_knurl_op',$,$,$,$,$,#30,$,#41,$); 42/* WORKPIECE 'knurl_workpiece' */ 43#60=WORKPIECE('knurl_workpiece','Workpiece for impossible knurl pitch test',$,$,$,$,$); 44/* MACHINING_WORKINGSTEP 'knurl_step' */ 45#50=MACHINING_WORKINGSTEP('knurl_step','Impossible knurl pitch step',#40,#60,$); 46/* WORKPLAN: knurling with pitch finer than tool resolution â unattainable */ 47#70=WORKPLAN('impossible_knurl_program','Impossible knurl pitch workplan',(),$,(#50)); 48/* Product chain */ 49#100=APPLICATION_CONTEXT('mechanical design'); 50#101=PRODUCT_CONTEXT('',#100,'mechanical'); 51#102=PRODUCT('M187','M187','M187',(#101)); 52#103=PRODUCT_DEFINITION_FORMATION('','',#102); 53#104=PRODUCT_DEFINITION_CONTEXT(#100,'design'); 54#105=PRODUCT_DEFINITION('','',#103,#104); 55#106=PRODUCT_DEFINITION_SHAPE('','',#105); 56#107=SHAPE_REPRESENTATION('',(#20),#14); 57#108=SHAPE_DEFINITION_REPRESENTATION(#106,#107); 58ENDSEC; 59END-ISO-10303-21;