i want to create a python script or locust file to automatically stuff the least rectangle inside cuver close like an image. Hope everybody help please. because the amount I need to do is quite large
Hello
most of the time it is better to bring some work.
Because you wrote
but it seems you want somebody else to write what you want and with quite no specifications.
Some hints :
Cut the shape every steps (or more) with infinite lines
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.intersect.intersection/curveline
Find the maximum interval (in X if you choose to work on XY plane) that contains 2 (or more) consecutive intersections,
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.interval
Count how many intersections are in this interval (use Math.Ceiling)
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.interval/fromunion
Then draw the rectangles
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.rectangle3d
That’s all.
I have done a tool not so different, I think I will add it to my Nautilus plugin and add a constrain in lenght.