Find opposite corners?

I need to create an overall rectangle for this geometry and I can’t find a way to isolate only the two opposite vertices (1 and 2 in the picture bellow) of the overall geometry. Over time the geometry or the number of surfaces can change.

Find_Oposite_CornersCorners.gh (19.4 KB)

BoundingBox will create a rectangle around all the points if you disable the Per Object option. Will that work?

oh! @DavidRutten beat me to it…
anyway, since I did it, I’m posting it in case it’s useful…

corners.gh (19.5 KB)

1 Like

Box Map if you don’t want to care about keeping track of corner indices.


BoxMapRec.gh (15.7 KB)

Thank you for replays. Indeed the “Union Box” component have another switch of which I was unaware and being exactly what I was looking for. Also the “Box Map” method is working but the “Union Box” is more appropriate.

Also the “Box Map” method is working but the “Union Box” is more appropriate.

Box Map method also uses union box, it is not a replacement for union box. It is a replacement for getting corners to make rectangle.