I’m trying to write a script that will offset planar surface edges inward then create a smaller surface. Everything is fine with 3-sided surfaces because no matter how you intersect the curves, they always intersect and I can connect the three points in any order.
Surfaces with 4 or more sides are problematic because the order matters. I’m using VBscript, Rhino.DuplicateEdgeCurves() command and when I label them, it is clear that it isn’t a clockwise or counterclockwise logic, it’s something else.
I tried something simple like:
temp = side3
side3 = side 1
side1 = side 2
side2 = temp
but it isn’t that predictable. Any suggestions for how to reliably order the DuplicateEdgeCurves() output in a clockwise or counterclockwise fashion? Or some other way of creating a bunch of inset surfaces?