-
Notifications
You must be signed in to change notification settings - Fork 53
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
Plotter bumps into its boundaries #53
Comments
This is expected behavior. Saxi doesn't clip the paths to the page area. If you disable 'fit to page' it's up to you to make sure your lines stay within the page :) |
(Though I could imagine adding an option to clip to page bounds! That might be useful.) |
Yes, I think it would be really good also to prevent damage to the machine. And, when this bumping happens the machine loses track of its position which requires to start the plot from scratch. So would be good to avoid that. This could help to implement it: |
That function you linked would remove every line in your example, since all of them have a start or end point outside the bounding box. So we'd need a more complex algorithm, e.g. Liang-Barsky https://gist.github.com/ChickenProp/3194723. |
Or could implementing parts of https://github.com/msurguy/svg-cropper-tool (as mentioned in #52 ) help with this too? |
@jvolker If you're able to try master, give it a shot. I've implemented a cropping algorithm. I haven't tried it myself yet (though I did write some tests). I'll wait to make a release until I'm able to test it a bit more thoroughly, but if you're game to try out the bleeding edge, it should work! |
Beautiful. I've just tried with the above SVG and it works perfectly. Thanks. |
I've had the plotter bumping into its frame when trying to draw outside the drawing boundaries. I loaded an SVG with a clipPath and disabling "fit page".
The following is a file that reproduces this.
In Affinity Designer:
In saxi:
Source of SVG
Thanks.
The text was updated successfully, but these errors were encountered: