M175 — AP238 drilling_operation tool axis not normal to feature face

§12.8 mixed (sub-class: AP238 deep machining)

spec-violation

Sources

Description

A `DRILLING_OPERATION` declares a tool_axis vector tilted 30 degrees from the feature's hole-axis. The controller either drills a slanted hole (mismatching the design intent) or refuses the operation because the tool axis isn't normal to the feature face. Bug-reporter language: "AP238 drill operation tilted", "STEP-NC drill axis off normal", "drilling tool not perpendicular".

Reproducer recipe

a `ROUND_HOLE` whose locator's axis is `(0,0,1)`; a `DRILLING_OPERATION` whose `tool_axis` is `(0.5, 0.0, 0.866)` (30 deg tilt).

Expected kernel behavior

validate tool_axis against the targeted feature's hole-axis; reject or warn.

Notes

Synonyms: "AP238 drilling tilted axis", "STEP-NC drill not normal to face", "drilling op axis mismatch with feature", "drill operation skewed".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* M175: AP238 drilling_operation tool axis not normal to feature face */
3/* DEFECT: DRILLING_OPERATION tool_axis (0.5,0.0,0.866) tilted 30 deg from feature axis (0,0,1) */
4/* ROUND_HOLE 'target_hole' has hole-axis (0,0,1); drill does not align with feature */
5/* Controller drills slanted hole or refuses operation — design intent violated */
6/* Per ISO 10303-238 §5.8 drilling tool axis must align with feature hole-axis */
7/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */
8/* Byte assertion: contains(b'DRILLING_OPERATION') */
9/* Byte assertion: contains(b'tool_axis_tilted') */
10HEADER;
11FILE_DESCRIPTION(('M175: AP238 drilling_operation tool axis 30 deg off feature normal'),'2;1');
12FILE_NAME('M175.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/* Feature hole-axis direction (0,0,1) — vertical, expected tool alignment */
28#30=DIRECTION('hole_axis',(0.0,0.0,1.0));
29/* DEFECT: tool_axis direction (0.5,0.0,0.866) — 30 degrees from (0,0,1) */
30/* Byte assertion: contains(b'tool_axis_tilted') */
31#31=DIRECTION('tool_axis_tilted',(0.5,0.0,0.866));
32#32=CARTESIAN_POINT('hole_origin',(50.0,50.0,0.0));
33#33=AXIS2_PLACEMENT_3D('hole_locator',#32,#30,$);
34/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
35#20=GEOMETRIC_CURVE_SET('ap238-drilling-tool-axis-not-normal-to-feature-face',
36  (#40,#52,#60));
37/* ROUND_HOLE 'target_hole': located with vertical axis (0,0,1) */
38#40=ROUND_HOLE('target_hole',$,$,#33,$);
39/* Byte assertion: contains(b'DRILLING_OPERATION') */
40/* DEFECT: DRILLING_OPERATION with tool_axis (0.5,0.0,0.866) — 30 deg off feature axis */
41#52=DRILLING_OPERATION('drill_tilted',$,$,$,#31,$,$,$,$);
42/* WORKPIECE 'drill_workpiece' */
43#60=WORKPIECE('drill_workpiece','Drilling workpiece for tilted-axis test',$,$,$,$,$);
44/* MACHINING_WORKINGSTEP 'tilted_drill_step' links operation to workpiece */
45#51=MACHINING_WORKINGSTEP('tilted_drill_step','Tilted drill axis workingstep',#52,#60,$);
46/* WORKPLAN: single step with tilted drilling operation */
47#50=WORKPLAN('tilted_drill_program','Tilted drill axis workplan',(),$,(#51));
48/* Product chain */
49#100=APPLICATION_CONTEXT('mechanical design');
50#101=PRODUCT_CONTEXT('',#100,'mechanical');
51#102=PRODUCT('M175','M175','M175',(#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;