Create rectangular bounding box perpendicular to longer side

How can I make rectangle bounding box perpendicular to surface longer side?

Something like this: (6.5 KB)

1 Like (17.1 KB)


Hi. I do try to adapt this script to my needs but seems that I do face some issues and I don’t know how to solve-it. (27.8 KB)

The error says ‘1. Data conversion failed from Curve to Vector’

You need to rebuild the edges so they only consist of two points and can be interpreted as vectors. (33.5 KB)


Thank you for the solution. Much better.

1 Like