axi icon indicating copy to clipboard operation
axi copied to clipboard

Add Drawing.crop

Open ferrouswheel opened this issue 8 years ago • 1 comments

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

ferrouswheel avatar Apr 17 '17 02:04 ferrouswheel

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.

fogleman avatar Apr 17 '17 16:04 fogleman