[Merged] 3D Pocket: upgrade to adaptive start and finish PR #2366

Here's the place for discussion related to CAM/CNC and the development of the Path module.
User avatar
Russ4262
Posts: 203
Joined: Sat Jun 30, 2018 3:22 pm

[Merged] 3D Pocket: upgrade to adaptive start and finish PR #2366

Postby Russ4262 » Sun Jul 21, 2019 1:04 am

Afternoon FC community,

Another round of staying up late and discovering numerous ways it wouldn't work. However, good new is we have a working solution. For many of us, the air milling above so many of our pockets is anything from a minor irritant to a great motivator to cut that pocket with your grandpa's old hatchet and move on to the next operation.

Today I submitted PR #2366, [Path] 3D Pocket: upgrade to adaptive start and finish as a means to reduce much of the air milling over certain pockets. I'm calling it adaptive start and finish. New properties for 3D Pocket will enable these two features by name. The adaptive starts and finishes will be attempted and provided if available. This new adaptive start and finish is only available when 'HandleMulitipleFeatures' is set to 'Collectively'. I will look into applying it for the 'Individually' setting in the future; but, the geometry is much different. I also need to ensure that if a user lowers the Start Depth, it will be respected when using the adaptive start and finish features.

The other upgrade in this PR is the feature to process the stock area with the model when no Base Geometry is selected (processing model as a whole). This feature will allow 3D Pocket to scan over the sides of the model (so long as the stock is large enough to accommodate the tool diameter around the perimeter). In times past, some users had placed their model on a temporary plane or thin base plate extending beyond the boundaries of the model. This feature may eliminate that necessity. This feature will act like a mild 3D Surface, but with much more limited usage in comparison. This feature is enabled with a new property by name.

I will post some before and after screenshots as teasers for this smooth set of new feature. These upgrades in combination with the previous collective face processing will position 3D Pocket as one of the more robust tools in the PathWB. I will look at applying the adaptive start and finish to the PocketShape op in the future.

I think 3D Pocket would benefit from making the 'Final Depth' property and setting available/exposed to users. It is currently unavailable since this op determines pocket depth in a 3D fashion and on a per-pocket basis.

Original functionality of 3D Pocket should be unaffected.

I'll post a few more pics. I think you'll be pleased.

Pic descriptions:
  1. target pocket set in curved surface
  2. current 3D Pocket result, no adjustments
  3. current 3D Pocket with adjusted Start Depth to reduce air milling
  4. NEW, adaptive start feature - view 1
  5. NEW, adaptive start feature - view 2
Russ
Attachments
3D_Pocket_Adaptive-1a.png
target pocket set in curved surface
3D_Pocket_Adaptive-1a.png (173.85 KiB) Viewed 158 times
3D_Pocket_Adaptive-1b.png
current 3D Pocket result, no adjustments
3D_Pocket_Adaptive-1b.png (200.31 KiB) Viewed 158 times
3D_Pocket_Adaptive-1c.png
current 3D Pocket with adjusted Start Depth to reduce air milling
3D_Pocket_Adaptive-1c.png (197.6 KiB) Viewed 158 times
3D_Pocket_Adaptive-1d.png
NEW, adaptive start feature - view 1
3D_Pocket_Adaptive-1d.png (195.93 KiB) Viewed 158 times
3D_Pocket_Adaptive-1e.png
NEW, adaptive start feature - view 2
3D_Pocket_Adaptive-1e.png (153.06 KiB) Viewed 158 times
Last edited by Russ4262 on Thu Jul 25, 2019 6:17 am, edited 2 times in total.
User avatar
Russ4262
Posts: 203
Joined: Sat Jun 30, 2018 3:22 pm

Re: 3D Pocket: upgrade to adaptive start and finish

Postby Russ4262 » Sun Jul 21, 2019 3:12 am

Another example of proposed adaptive start in the PR mentioned in OP.
Pic descriptions:
  1. Standard 3D Pocket set into inclined planar face
  2. Same 3D Pocket with lowered Start Depth to reduce air milling
  3. NEW, adaptive start feature enabled
Thanks,
Russ
Attachments
3D_Pocket_Adaptive-2a.png
Standard 3D Pocket set into inclined planar face
3D_Pocket_Adaptive-2a.png (157.18 KiB) Viewed 152 times
3D_Pocket_Adaptive-2b.png
Same 3D Pocket with lowered Start Depth to reduce air milling
3D_Pocket_Adaptive-2b.png (172.32 KiB) Viewed 152 times
3D_Pocket_Adaptive-2c.png
NEW, adaptive start feature enabled
3D_Pocket_Adaptive-2c.png (176.44 KiB) Viewed 152 times
dubstar-04
Posts: 291
Joined: Mon Mar 04, 2013 8:41 pm

Re: 3D Pocket: upgrade to adaptive start and finish

Postby dubstar-04 » Sun Jul 21, 2019 5:50 am

Hi Russ,

This looks incredible! Absolutely fantastic work!

Thank you so much for all the time and effort you have put in to FreeCAD path, with each of these enhancements FreeCAD is becoming a more viable alternative to commercial CAM packages.

Thank you,

Dan
RatonLaveur
Posts: 158
Joined: Wed Mar 27, 2019 10:45 am

Re: 3D Pocket: upgrade to adaptive start and finish

Postby RatonLaveur » Sun Jul 21, 2019 7:15 am

Absolutely ludicrous. I love it.
User avatar
Russ4262
Posts: 203
Joined: Sat Jun 30, 2018 3:22 pm

Re: 3D Pocket: upgrade to adaptive start and finish

Postby Russ4262 » Sun Jul 21, 2019 7:50 am

RatonLaveur wrote:
Sun Jul 21, 2019 7:15 am
Absolutely ludicrous. I love it.
Thought you would take a fancy to it.

Recognize the last example?

'Night,
Russ