CAM: Rest machining at the bottom of a pocket still aircuts where there is no longer stock but only in very small areas
- Dominant language
- C++
- Stars
- 33.6k
- Forks
- 6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 196
Description
### Problem description
In the latest git release if I mill a pocket and then do a subsequent operation at the bottom of that pocket with rest machining enabled it still aircuts where it shouldn't. Please see the file and attached video
I found this issue which is marked solved that is sortof describing the same problem however for after a mill face op. https://github.com/FreeCAD/FreeCAD/issues/16219 . I think it may have been solved for mill face but not for pocket.
### Workbench affected?
CAM
### Steps to reproduce
https://github.com/user-attachments/assets/ef4401bd-7493-448f-88bf-a4fca6be7b69
[shopbot_cam_test.FCStd.zip](https://github.com/user-attachments/files/24828703/shopbot_cam_test.FCStd.zip)
1. Make a part with a pocket and do another pocket at the bottom of that pocket that is smaller
2. pocket the first op
3. then attempt to pocket the second with rest machining enabled.
### Expected behavior
Cuts should only be made in the material left after op1. The cutter should be engaged and not cutting air.
### Actual behavior
The cutter moves above the workpiece but only in small areas, like rest machining removed 80% of the tool paths that would cut air but not all of them.
### Development version About Info (in Safe Mode)
```shell
OS: Arch Linux (sway/sway-vulkan/xcb)
Architecture: x86_64
Version: 1.2.0dev.45066 (Git)
Build date: 2026/01/18 23:09:53
Build type: Release
Branch: makepkg
Hash: ea2c1b0c75fb66fd3d424f70af9434f2f95918f9
Python 3.14.2, Qt 6.10.1, Coin 4.0.6, Vtk 9.5.2, boost 1_89, Eigen3 5.0.1, PySide 6.10.1
shiboken 6.10.1, SMESH 7.7.1.0, xerces-c 3.3.0, OCC 7.9.3
Locale: English/United States (en_US)
Navigation Style/Orbit Style/Rotation Mode: CAD/Rounded Arcball/Window center
Stylesheet/Theme/QtStyle: FreeCAD.qss/FreeCAD Dark/
Logical DPI/Physical DPI/Pixel Ratio: 96/109.605/1
Installed mods:
* Curves 0.6.70
* fasteners 0.5.43
```
### Last known good version (optional)
```shell
None that I'm aware of.
```
Contributor guide
Assessment
This issue has not been assessed yet.