It looks like you're new here. If you want to get involved, click one of these buttons!
I'm wondering if I can separate the donuts shape (A) to 4 pieces of rectangle (B) ?
You could cut (subtract) along the inner vertical edges and
stretch (Partial) to re-butt the ends of the horizontal edges?
At least that's how I'd do it, by hand knowing only what I know.
If your question was how to script it, I got nuthin'.
Hi Dick, Thanks for your feedback, if I do it by hand, I'll use your method.
Yes, my question is how to do it by python script.
Anyway, really appreciate your comment. Thanks.
the method you're looking for is "Polygon#decompose_trapezoids". It will give you a set of smaller (4 corners max) polygons from a bigger one.
Thanks Matthias. It's exactly what I'm need.