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
Hatches being output in unexpected order #17
Comments
In theory, you should be able generate the hatch vectors in the preferred order (i.e. scanning parallel across the hole) . Using the PySLM the order 'should' be retained if you use the clipLines function and then sort the scan vector following clipping. See the excerpt from below. The 3rd column (or
` This is not to say it is perfect. I have seen a few rare occasions where the scan order is not preserved (e.g. bad incorrectly oriented clipping boundaries) or the PyClipper tolerance is set too low. If you can confirm by providing the example, I can look further into this, but the behavior described above does appear unusual. |
I previously had that It seems I believe the small tweak I mentioned prior was my only change to the framework - one I shouldn't have done in the first place. I've since recompiled everything and the issue persists. I will continue looking into it and see if I can get together a reproducible example. If you have any input in the meantime, feel free. |
While this doesn't actually solve this specific issue, I was able to fix this by essentially commenting out the sorting lines and successfully using LinearSort, as detailed in Issue #16 . Here's some gifs of the finished result: |
Here's a short video to demonstrate:
I want the vectors to be output strictly top-right to bottom-left (the direction of the hatch angle, or 90deg from it - you get the gist). However, I'm seeing that some vectors entirely below the hole are being output before some vectors to the right of the hole. I want vectors directly parallel, across from each other across the hole, to be burned one right after another, so you get a nice, linear progression down and to the left (in this example).
Any idea what's going on here? Am I right to assume this could be remedied by LinearSort (which I've submitted a separate issue for, as I think it's flawed)?
Thank you!
The text was updated successfully, but these errors were encountered: