Skip to content

Conversation

ferrouswheel
Copy link

Unlike Drawing.remove_paths_outside, this will split paths up and include any path segments inside of [0..width], [0..height].

@fogleman
Copy link
Owner

I actually implemented this before in my Makeblock XY plotter library:

https://github.com/fogleman/xy/blob/master/xy/drawing.py#L85-L89

I used Shapely to do a proper crop versus just filtering points.

I'll look into adding this to axi soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants