Bark-beetle-parametric-toolpaths icon indicating copy to clipboard operation
Bark-beetle-parametric-toolpaths copied to clipboard

Sometimes surfaces don't fully generate code when trying to 3D mill

Open Siemenc opened this issue 4 years ago • 5 comments

As discussed in issue #61, it seems like there's cases where a surface doesn't generating code in specific areas. I 've experienced this before. image

Siemenc avatar Mar 20 '20 13:03 Siemenc

I can confirm this. In my computer I do have the same result.

zohozer avatar Mar 20 '20 18:03 zohozer

Here's another case of an object that doesn't completely mill with finish pass. I added 3D model for testing. image

200922 Finish pass fail model.zip

Siemenc avatar Sep 22 '20 15:09 Siemenc

I think it has to do with the resolution of the mesh which is used as an obstacle in the mesh collision component or with how the the points for positioning the milling bits are being generated. image This is what it looks like on the inside, so it seems like the collision detection component does its job correctly. image

Siemenc avatar Sep 22 '20 15:09 Siemenc

Came across another one causing issues in the latest version, so just wanted to add it here for debugging at some point

image 210613 3D mill bug.zip

Siemenc avatar Jun 12 '21 22:06 Siemenc

It looks like our 3D toolpath logic struggles with "valley like" inward curving of the surface.

I managed to reproduce the bug in stable release v1.02. An fix in this case was to disable collision detection (new feature in version 1.02). This also took calculation time down from 20 seconds to 3 seconds. The roughing toolpath unfortunately does not cover the entire surface though:

image

I guess it is another reason build a new more stable and faster collision detection logic. Changing from a flat end mill to a ball nose did not help.

Leaving collision detection on but changing the tolerance also made continuous finishing toolpaths, but now the roughing toolpath is still not covering the entire surface. I think the problem is that the end mill tollpath is offset sideways in (in certain surface angles) to compensate for the end mill radius, and that makes the collision detection chop the path. Increasing the tolerance made the matter worse not better, i will investigate. image

JensDyvik avatar Jun 14 '21 14:06 JensDyvik