Collaborations

Machining · PB_Conversational

Adaptive clearing: why the cutter breaks in the corner and how to avoid it

The maths behind it, who really invented it and how I built it into my LinuxCNC conversational screens. Explained so that anyone who has ever heard a cutter suffer can follow it.

Published on 23 November 2026. Revised on 29 November 2026.

If you've ever cleared a pocket on a small mill, you know the moment. The cutter sings along calmly by the wall and, when it reaches the corner, the sound changes: it goes deep, the machine groans, the spindle drops revs. With luck, that's all. Without it, a motor loses steps or the 4 mm cutter snaps off inside the part.

It isn't bad luck, it's geometry. And it has had a solution for twenty years: adaptive clearing. The big CAM packages call it Adaptive Clearing, Dynamic Milling, VoluMill or iMachining. Behind all of them there is one surprisingly simple idea, and in this article I tell you all of it: where it comes from, what maths holds it up and how I brought it to PB_Conversational, my conversational programming screens for Probe Basic.

What the cutter feels: the engagement angle

Look at a cutter from above while it cuts. It's a spinning circle, and only part of that circle is touching material. That portion is called the engagement angle (or immersion angle), and it's what really matters to the tool.

When you mill along a wall taking a stepover (radial depth of cut) ae with a cutter of diameter D, the engagement angle comes out of a good old triangle:

φ = arccos(1 − 2·ae / D)

No need to memorise it. Just look at what it gives:

Stepover (radial depth of cut)Engagement angle
10% of the diameter37°
25 %60°
40%, typical for a pocket78°
50 %90°
Full-width slot180°

Notice one thing: the relationship isn't linear. Going from 10% to 40% stepover doesn't multiply the engagement by four, it doubles it. And that angle governs almost everything: how long each flute spends in the material, how much heat it builds up, how much force pushes the cutter sideways and how much torque it asks of the spindle.

Three cutters seen from above: with a 10% stepover they cut 37 degrees, with a 40% stepover they cut 78 degrees and in an inside corner they cut about 168 degrees
In red, the part of the cutter that is cutting. The arrow shows the direction of travel. In the inside corner, with the same 40% stepover, the engagement shoots up.

The treacherous corner

The traditional pocket is cleared with concentric loops: one lap, step over, another slightly bigger lap, and so on out to the wall. On the straights all is well: the engagement is the one in the table, 78° at 40%. In fact my conversational splits the width into equal passes, and in this pocket they come out at 3.75 mm, 37.5%, which is about 75°.

The problem is in the inside corners. There the cutter has material in front and to one side at the same time, and it wraps around it. With a 40% stepover, the engagement in the corner rises to 168° (90° from the side wall plus the 78° of the straight): almost like plunging the cutter into a slot. For an instant, the tool goes from working at 78° to working at more than twice that, without anyone touching the feed.

To check it I didn't trust the drawings. I wrote a small simulator that runs through the real program PB_Conversational generates for a 60 × 40 × 10 mm pocket with a 10 mm cutter, with the limits of my EMCO F1, removes the material point by point on a 0.1 mm grid and measures how much of the cutter touches material at every instant. This is the result:

Chart of the engagement angle over the whole program on the EMCO F1: the classic pocket has peaks of up to 165 degrees in every pass; the adaptive one always stays below 45 degrees
Both complete programs, minute by minute, on my F1. Top, the classic pocket in its five passes: each peak is a corner or the initial slot, up to 165°. Bottom, the adaptive one in a single 10 mm pass: the first half minute is the helical entry, which the simulator doesn't measure (there the cutter cuts with its tip, going down 0.77 mm per turn, not with its side), and after that it never goes above about 42°, when theory says 37°.

In the classic pocket, more than a minute and a half of the five-minute program is cut with more than 90° of engagement, spread over short moments, one at each corner. Those moments are what decide it: a cutter doesn't break because of the average, it breaks because of the peak. And on a small machine with stepper motors, that peak is exactly when an axis can lose steps.

The idea: don't control the stepover, control the engagement

Here is the whole trick of adaptive clearing. A classic pocket fixes the stepover and lets the engagement do whatever it wants. An adaptive one does the opposite: it fixes the engagement and works out, at every point, the stepover needed to keep it.

If the cutter never wraps more than, say, 37°, some very interesting things happen:

  • You can go much deeper in Z, because the effort on each flute is small and constant. CAM makers talk about using the whole cutting length of the cutter.
  • Wear is spread along the whole flute instead of always eating the first two millimetres of the tip.
  • Each flute spends little time in the material and a lot of time out of it, cooling down, and the chip carries the heat away.
  • The machine works with an almost flat load: no jolts at the corners and no surprises.

It's like riding up a hill on a bike: you can go in bursts, standing on the pedals one moment and stopped the next, or you can change gear and keep the same effort the whole way. You get to the top just the same, but the second way you don't snap the chain.

Better to see it: two pockets, one clock

Enough theory for a moment. Here is the same pocket done two ways, with the real toolpaths my conversational generates, running side by side for 7 minutes of machine time. Watch the ring at the tip of each cutter: on the classic one it turns red at every corner, on the adaptive one it never leaves blue. And watch the pocket counter.

0:00of 7:00 machine time

0°engagement angle
0,00 pockets

0°engagement angle
0,00 pockets
Both cutters run on the same clock for 7 minutes of machine time. When a pocket finishes, the next one starts. The ring at the tip and the gauge show how much the cutter wraps around the material: blue up to 60°, amber up to 120° and red above that. During the helical entry the gauge shows no angle, because there the cutter cuts with its tip. Real PB_Conversational toolpaths: a 60 × 40 × 10 mm pocket in aluminium, 10 mm 3-flute cutter at 5000 rpm, 750 mm/min on the classic and 1250 mm/min on the adaptive. Limited like my EMCO F1: 2000 mm/min maximum, rapids included, and arcs slowed down to √(a·r) with 433 mm/s², the 87% of its 500 mm/s² that LinuxCNC keeps for turning.

Also try switching the rival to adaptive at 5 mm per pass. It loses the race: on my F1 it doesn't even finish one pocket in the 7 minutes. And that's exactly what you have to understand: adaptive isn't fast by magic. It's fast because it lets you go much deeper in Z without punishing the cutter.

Who invented it?

Let's be honest here: there is no single inventor. It's an idea that matured over fifteen years between universities, laboratories and CAM companies, and each of them added a piece.

A public laboratory asked the right question. In 1992, Thomas Kramer, at the US NIST, published a pocketing algorithm that detected which stretches the cutter ran with the minimal engagement of a straight pass and which it didn't, and changed feed and spindle speed when crossing from one to the other. It didn't change the path yet, but it already measured what really matters: engagement, not stepover.

The universities added the maths. In 2000, James Stori and Paul Wright, at Berkeley, proposed constant-engagement toolpaths for convex shapes. In 2002 and 2003, Choy and Chan, in Hong Kong, tackled corners with small loops that close in the radius bit by bit, the same idea I use in the corners. In 2003, Bieterman and Sandstrom, at Boeing, published curvilinear toolpaths that blend smoothly from the centre of the pocket to its outline, and in 2004 Soichi Ibaraki's group, in Kyoto, generalised constant engagement to any flat pocket.

The algorithm that reached everyone has a first and last name. In late 2003, British programmer Julian Todd, together with Martin Dunschen, came up with a new way of computing toolpaths: instead of drawing them geometrically, simulate the material still left uncut at every moment and use that simulation to steer the cutter, so that it never uses more than a set width of cut. They called it Adaptive Clearing, developed it in 2004 and first sold it as an add-on for Mastercam, through CIMCO.

That algorithm ended up as the heart of HSMWorks, a Danish CAM package. In 2012 Autodesk bought HSMWorks, which is why today the best-known roughing strategy in the hobby world, Fusion's Adaptive, descends directly from that work. Curiously, their brochure at the time said there were no patents on the technique and that anyone was free to develop their own version.

Then came the patents and the trade names. In 2004, the American company Surfware filed the Engagement Milling patent, by Alan Diehl and mathematician Robert Patterson, which ended up in SURFCAM as TrueMill. That patent family is winding down right now: the first one expired in May 2025 and the last of the original group does so on 17 December 2026. In 2007, Celeritive launched VoluMill, which keeps the volume of material removed almost constant. Mastercam brought out its Dynamic Milling, which Todd himself considers the most faithful copy of his idea, and by Mastercam X5, in 2010, it already extended it to rest roughing and contours. In 2011, SolidCAM released its iMachining. Each with its own name, and all chasing the same thing: that the load on the cutter never spikes.

The physics of trochoidal cutting, by the way, came after the software: the first serious model of its forces was published by Murat Otkur and İsmail Lazoğlu in 2007. Before that, mould programmers in the 90s were already doing trochoidal paths by hand because, quite simply, they worked.

The maths, without fear

For this to work it isn't enough to «take a smaller stepover». Three more things have to be adjusted, and each one has its formula.

1. The chip thins: you have to raise the feed

When the cutter only skims the material, each flute enters and leaves so sideways that the chip it takes is thinner than the feed per tooth you programmed. If you program 0.05 mm per tooth at 10% stepover, the real chip, at its thickest, is around 0.03 mm. And a chip that is too thin doesn't cut: it rubs, heats up and wears the edge more than a normal one.

The correction is to multiply the feed by:

factor = 1 / sin φ

At 10% you get ×1.67, at 15% ×1.40 and at 25% ×1.15. From 50% up there is nothing to correct.

Two charts: the engagement angle grows with the radial stepover; the feed correction factor is very high at small stepovers and equals 1 from 50 percent up
Left: how much of the cutter cuts depending on the stepover. Right: how much to raise the feed so the chip has the thickness you programmed.

2. What you lose in width, you gain in depth

The material you remove per minute is simply width × depth × feed:

Q = ae · ap · vf

With the 10 mm cutter in the example, the classic pocket at 40% and 2 mm deep at 750 mm/min removes 4 × 2 × 750 = 6 cm³ per minute on the straights. The adaptive one at 10%, with the feed corrected to 1250 mm/min, only takes 1 mm of width, but it can go 5 mm deep: 1 × 5 × 1250 = 6.25 cm³ per minute. And if the machine can take 10 mm of depth, twice that.

In other words: adaptive isn't faster in itself. It's faster because it lets you go much deeper without fear. If you use it at the same depth as a normal pocket, it will take longer. I show it with numbers further down.

3. Inside a curve, the same stepover bites harder

This is the most beautiful part, and the one most often forgotten. If the cutter follows a concave curve (on the inside of a circle, as in an opening spiral or the radius of a corner), the material wraps around it a little more than on a straight. With the same stepover, the engagement goes up.

To keep exactly the same engagement as on a straight wall, the stepover on a curve of radius r, measured at the centre of a cutter of radius R, has to be:

a = r + R − √(r² + R² + 2·r·R·cos θ)

where θ is the engagement we want, the one on the straight. It looks ugly, but it comes from applying the law of cosines to the triangle formed by the centre of the curve, the centre of the cutter and the point where the cutter stops touching material. And the result is very intuitive:

Chart: with a 10 millimetre cutter at 10 percent, on a curve of 5 millimetres radius only half the stepover fits; on large curves the stepover approaches the straight-wall value
On a straight, the stepover would be 1 mm. If the centre of the cutter follows an arc of 5 mm radius (a concave wall of 10 mm radius), only 0.51 mm fits, and it takes a curve several diameters across to get back close to a millimetre.

That's why a real adaptive spiral isn't an Archimedean spiral, with all its turns equally spaced. The first, tight turns are very close together, and they spread apart as the radius grows.

How it goes into a conversational

A CAM package like Fusion solves the problem in general: it simulates the material left and searches for the path on any part you give it. It's extremely powerful, but it has two costs: it needs a lot of computation, and it usually produces programs with thousands of tiny segments.

A conversational has an advantage: it knows in advance what shape it is going to clear. In PB_Conversational they are rectangular or circular pockets, with their corner radius. And if the shape is known, the toolpath can be built piece by piece, with exact geometry, instead of searched for blindly. This is how I did it:

  1. Helical entry at one end of the pocket axis, opening a hole 1.5 times the cutter diameter.
  2. Constant-engagement spiral out of that hole, with the stepover worked out turn by turn using the concave-wall formula: very tight at first and wider and wider as it grows.
  3. Trochoidal channel along the axis: the cutter advances in loops, cuts with the front half of each circle and returns through already cleared material at twice the feed. The channel width is worked out for each pocket to give the shortest total time.
  4. Stadium-shaped spiral from the channel out to the long walls: every straight and every end cuts at the target load.
  5. Corner passes that keep closing in the radius until the end. They never go below 0.15 times the diameter, because tiny arcs only make LinuxCNC slow down. If the corner is tighter than that, the last pass goes in at normal feed, without the chip-thinning boost, because there the round cutter hugs the corner no matter what.
Real cutter path coloured by engagement angle: the classic pocket has orange and red stretches in the corners; the adaptive one is blue across the whole part
The real toolpaths PB_Conversational generates, coloured by the engagement angle from the simulation. The dashed line is the pocket wall; the trace, the centre of the cutter.

There's one detail I'm particularly happy with: the whole program is G2/G3 arcs and tangent lines, always in the same cutting direction. That has two advantages on a machine like mine. The LinuxCNC planner doesn't run into sharp corners or thousands of 0.05 mm segments, and it doesn't have to brake all the time. And since it always climb-mills, the cutter doesn't keep switching from one side of the wall to the other between passes. That doesn't make backlash go away: on every arc the X and Y axes still change direction, and if your ballscrew has play, you'll still notice it there.

You've already seen the simulation result: with the classic pocket, peaks of 165° at every corner; with the adaptive one, outside the helical entry, the engagement never goes above about 42°, against the 37° of the theory. The differences from theory come from the simulator's grid, which works with 0.1 mm cells and 2.5° sectors: where the edge leaves the material the chip is thinner than a cell and isn't seen, so the classic shows a bit less than reality (about 65° on the straights instead of 75°, 155° in the initial slot instead of 180° and 165° at the corners instead of 168°), and the rounding of the sectors pushes the adaptive up a little. The trends, which are what matter, are those of the theory.

What changes when you program

Adaptive isn't magic, and it's worth knowing what it gives you and what it asks of you.

It takes longer, unless you go deeper

Everything in this article is calculated for my machine, the EMCO F1 with LinuxCNC: spindle at 5000 rpm maximum, 2000 mm/min top speed on the axes (rapids included) and 500 mm/s² of acceleration, which are the values in its .ini. With the 60 × 40 × 10 mm pocket, a 10 mm, 3-flute end mill in aluminium, at 5000 rpm and 0.05 mm per tooth (750 mm/min), these are the numbers. They're the ones from the race above, and they're estimates from my simulator with those speed and acceleration limits, not times clocked on the machine: LinuxCNC's real planner may take a bit more or a bit less. The maximum engagement is the one outside the helical entry, which the simulator doesn't measure.

StrategyEstimated timeMaximum engagementEstimated peak power
Classic, 40% stepover, 2 mm per pass5:00165°, in the cornersabout 440 W, in jolts
Adaptive, 10% load, 5 mm per pass7:4942°about 210 W, always the same
Adaptive, 10% load, 10 mm per pass4:0842°about 415 W, always the same

The classic one spends more than a minute and a half above 90° of engagement. The adaptive one, not a single second.

Look at the last row: adaptive at 10 mm asks for roughly the same peak power as the classic pocket, but it asks for it smoothly all the time, not in jolts at every corner. That is the difference between a machine that works and one that suffers.

My advice for a small mill: start with a depth of half the cutter (0.5 × D), go up to a full cutter (1 × D) in aluminium if the spindle doesn't complain, and leave 1.5–2 × D for machines with real power. Above 1 × D, the screen warns you.

The screen sets the feed, but your machine has to cope with it

PB_Conversational applies the chip correction by itself: you type your usual feed per tooth and it multiplies it by 1.67 at 10%. Linking moves through already cleared areas run at twice that. That means your MAX_VELOCITY and MAX_ACCELERATION in the .ini have to be values your motors can really hold, not the ones you put in one day to try things out.

LinuxCNC slows down in curves

No machine can take a curve at any speed. The acceleration needed to follow an arc grows with the square of the speed, so the maximum speed on an arc of radius r with an acceleration a is roughly:

v ≈ √(a · r)

One subtlety: on arcs, LinuxCNC doesn't spend all the acceleration on turning. It reserves √3/2 of it, about 87%, for the component pulling towards the centre. On my F1, with 500 mm/s², that's about 433 mm/s², and an arc of 2.5 mm radius allows about 1970 mm/min. Plenty for the 1250 of cutting, but the linking moves, which run at twice the feed and which the machine clips to its 2000 mm/min, already brush the limit on the tightest turns. On a mill with 200 mm/s², the same arc would stay at about 1250 mm/min and the first turns of the spiral would run slower than programmed. It isn't a fault, it's physics, and it's another reason never to go below that 0.15 × D on the radii.

It needs room to get in

The helical entry opens a hole of 1.5 × D. If the pocket is narrower than that plus the wall stock, the screen tells you and you have to go back to the normal pocket. On rectangular pockets the entry isn't at the centre but at one end of the axis, so plunging straight into a pre-drilled centre hole won't work either.

It tells you how hard the machine is going to work

A stepover percentage says nothing on its own: what matters is the combination of width, depth, feed, speed and material, and above all the worst point in the program. That's why the screen calculates the peak power and torque of the operation with the Kienzle model (the specific cutting force of each material) and shows it to you before machining. That way you can compare it with what you know your spindle can take.

Why I put it in my conversationals

Because my machines are exactly the case where adaptive makes the biggest difference. Small, restored mills, with stepper motors and ballscrews that have seen a few years. On a big rigid machine, a corner at 168° is a bad moment. On one of mine, it's a lost step or a broken cutter.

And because until now, to get this in LinuxCNC you had to go through a CAM package, export, check thousands of lines and cross your fingers. Now it's filling in four values on the machine screen: size, depth, cutter and load. The program that comes out can be read, because every block has its comment, and the machine digests it well, because it's clean arcs.

PB_Conversational is free software (MIT licence). You can download it, use it and see how it's built inside on its project page. If you try it on your machine, let me know: I'm very interested in how it behaves on mills other than mine.

Sources

Scientific papers

  • Kramer, T. R. (1992). Pocket milling with tool engagement detection. Journal of Manufacturing Systems, 11(2), 114–123. NIST record
  • Stori, J. A. and Wright, P. K. (2000). Constant engagement tool path generation for convex geometries. Journal of Manufacturing Systems, 19(3), 172–184.
  • Choy, H. S. and Chan, K. W. (2002). Machining tactics for interior corners of pockets. International Journal of Advanced Manufacturing Technology, 20, 741–748.
  • Choy, H. S. and Chan, K. W. (2003). A corner-looping based tool path for pocket milling. Computer-Aided Design, 35(2), 155–166.
  • Bieterman, M. B. and Sandstrom, D. R. (2003). A curvilinear tool-path method for pocket machining. Journal of Manufacturing Science and Engineering, 125(4), 709–715.
  • Ibaraki, S., Yamaji, I., Matsubara, A. et al. (2004). Constant engagement tool path generation for two-dimensional end milling. JUSFA 2004, Kyoto University.
  • Elber, G., Cohen, E. and Drake, S. (2005). MATHSM: medial axis transform toward high speed machining of pockets. Computer-Aided Design, 37(2), 241–250.
  • Otkur, M. and Lazoğlu, İ. (2007). Trochoidal milling. International Journal of Machine Tools and Manufacture, 47, 1324–1332. doi:10.1016/j.ijmachtools.2006.08.002
  • Held, M. and Spielberger, C. (2009). A smooth spiral tool path for high speed machining of 2D pockets. Computer-Aided Design, 41(7), 539–550.
  • Kienzle, O. (1952). Die Bestimmung von Kräften und Leistungen an spanenden Werkzeugen und Werkzeugmaschinen. VDI-Z, 94(11), 299–305. The origin of the cutting-force formula the screen uses.

Patents

  • Surfware (Diehl, A. and Patterson, R.). Engagement milling. US 7,451,013, priority April 2004, expired May 2025. News of the grant (2008)
  • Surfware, later TrueMill Inc. Engagement milling. US 7,577,490, from the same family, expected to expire on 17 December 2026. European equivalent: EP 1745400.

Industry history

Cutting data and control

What's next comes out on YouTube

Every week: restoration progress, new parts and what goes wrong, told as it is.

Subscribe to DominicZe