New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem] CAM: Incorrect paths generated by adaptive clearing #6217
Comments
0.20 pre-release analysis with Revision 28638: This screen shot is from the above revision. The key issue that I see reported is the erroneous lateral paths that are produced, as seen in the screenshots in the forum post. However, there is a work around by adding a small |
#5276 is still valid and fixes the issue, I'm using that modification since December last year. |
#5276 wasn't merged per #6217 (comment) |
the issue is still there, use an 8mm end-mill. On the other side the issue including fix are well documented by now I'm still using the fixed code on a regular basis :-) |
If the included image is generated with 0.21, then the issue is still
present in lower left quadrant, where path extends leftward with cone shape
into offset region, to almost touch the part.
Russ
…On Sun, Aug 13, 2023, 09:55 sundtek ***@***.***> wrote:
the issue is still there, use an 8mm end-mill.
On the other side the issue including fix are well documented by now I'm
still using the fixed code on a regular basis :-)
—
Reply to this email directly, view it on GitHub
<#6217 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLOWJAOGM6XZOPQSVZQ6MDXVDTGVANCNFSM5NYVJ73A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
If the included image is generated with 0.21, then the issue is still
present in lower left quadrant, where path extends leftward with cone shape
into offset region, to almost touch the part.
Russ
…On Sun, Aug 13, 2023, 09:26 sliptonic ***@***.***> wrote:
Tested with 0.21 and the path looks correct. Can we close?
[image: image]
<https://user-images.githubusercontent.com/538057/260308999-c5e7e956-a51d-4dc0-b9f3-83bd87104f6e.png>
—
Reply to this email directly, view it on GitHub
<#6217 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLOWJFMIAYD564J5ZZXJBDXVDPZ7ANCNFSM5NYVJ73A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
https://github.com/FreeCAD/FreeCAD/pull/5276/files just to recall doFilter will fix it. I didn't want to spend more time on it because I'm quite overloaded with other things on my side; So I quickly erased this topic from my head once it was done. I use this modification since I fixed it. Back then freecad needed a substantial amount of modifications to make it useful for my project. Multiple times I've reached the situation where I almost had to give up my project with freecad after months designing hundreds of parts with it. |
Iirc your solution looked good and the concern was about code style. It
just needed some refactoring
…On Sun, Aug 13, 2023, 6:40 PM sundtek ***@***.***> wrote:
https://github.com/FreeCAD/FreeCAD/pull/5276/files
just to recall doFilter will fix it. I didn't want to spend more time on
it because I'm quite overloaded with other things on my side; So I quickly
erased this topic from my head once it was done. I use this modification
since I fixed it.
Back then freecad needed a substantial amount of modifications to make it
useful for my project. Multiple times I've reached the situation where I
almost had to give up my project with freecad after months designing
hundreds of parts with it.
I designed a pick and place machine back then with 8mm feeders which I
have machined from Aluminum, I also did all the firmware and software for
it.
Path needs quite a few modifications to perform in a useful way for such a
project, first of all the path extensions have to be rewritten and all the
auto detection which is a bottleneck has to be removed - handing over more
options to the user.
Also I had to cope with various other FreeCAD related issues.
—
Reply to this email directly, view it on GitHub
<#6217 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEDLSIXR5WWOUIB6NUPKALXVF6ZPANCNFSM5NYVJ73A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I don't think so. IMO More like an overzealous maintainer completely missing the forest for the trees. This used to happen a lot. Thankfully not so much nowadays. Result: Issue STILL not fixed, OP cheesed off, and discussion consuming everyone's time 18 months later. All that for 34 lines of code? Really? |
The single biggest point of contention when we wrote the CONTRIBUTING policy was about code quality. People wanted the maintainers to be activist about ensuring that contributions are well written. We tried to strike a balance but it's a judgment call. You yourself have been a loud voice for code modernization. In this case, the old C-style was flagged as problematic. The contributor was even given sample code and declined to continue working on it. That puts the work on someone else. You're right it's a small fix. Can you tell me how big a contribution should be before we start caring about code quality? |
I would change the rules accordingly: №1 a bug should be fixed If someone comes across and says but it should look like that, I just say good go for it I have no objection but I won't be the one spending more time on it. I did my part by finding, understanding, resolving and heavily testing this issue. |
Absolutely! But that's a different topic, and certainly not an excuse to block a PR.
Freecad is seriously riddled with old style stuff so that does not make a PR "bad quality"? Just fitting in! Anyone can nitpick a PR to death, but what about the bigger picture? |
You can do that. Submit an issue describing the problem with the policy. Then submit a PR to change the contributing.md policy and solve the problem.
How big should a contribution be before code quality becomes a consideration? |
What is "code quality"? Perhaps:
|
will PR #12661 fix the entire issue? |
Issue imported from https://tracker.freecad.org/view.php?id=4658
Original report text
Adaptive clearing without "use outline" generating incomplete path. With "use outline" it goes out of boundary in one place.
here is the file:Isses-6217.zip
originally shared via https://drive.google.com/file/d/1kwrOw5bVSPOU0QoOWJmXbtGHRwC3RMcf/view?usp=sharing
Here is the forum discussion:
https://forum.freecadweb.org/viewtopic.php?f=15&t=58547&p=503248#p503248
Steps to reproduce
Use attached file and create adaptive clearing operation with settings from screenshots.
Both paths with "use outline" and without are incorrect.
Other bug information
Discussion from Mantis ticket
Comment by chrisb 2021-05-13 10:01
I have simplified the file so that it still shows the error. The file couldn't be added to the tracker, I add it to the forum.
Comment by Kunda1 2021-08-29 13:46
Added chrisb's simplified example
Comment by russ4262 2021-09-03 22:27
Confirmed. The Adaptive operation has some internal bugs related to path generation, mainly of two types.
The first type is an odd lateral path from the correct clearing area outward to the perimeter of the target area. The second type is a larger path generation bug resulting in a partial path set for a given target area, as though part of the target area is ignored or truncated. This second type seems to have some correlation to complex shapes and curves.
The text was updated successfully, but these errors were encountered: