Vector to Points to Lines optimization

Does anyone know an easy way to create and enclosed boundary in this corner condition by moving the points along the edges to then connect?

Yes, if you will please post your test geometry, either Rhino file or internalized GH?

Actually, is there a way to simultaneously create geometries at the corners of this offset rectangle? I need for the distance of the geometry to be adjustable by sliders. It would be ideal if they could all be adjusted at the same time.


SG_1.3dm (28.6 KB)
SG_1.gh (5.1 KB)

I see no reason for the Rhino file? .3dm

I got two lines perpendicular to each segment of the offset (inner) curve from two sliders: ‘X_pos’ and Y_pos’. So eight lines in all, from two sliders. They could be used to split the boundary surface?


SG_1_2023Jun29a.gh (22.4 KB)

P.S. Added gold group to split the boundary surface.


SG_1_2023Jun29b.gh (30.5 KB)

Ah thank you! Is there any way that I can dispatch the “inside” corners to have their own separate toggles so I can avoid any diagonals? I have included the rhino geometry this time.

SG_2.3dm (127.5 KB)

I was working on this anyway because I didn’t like the code I posted earlier (version ‘29a’ and ‘29b’), in part because it assumed the shape was rectangular. So this works I a little differently; it handles polygon perimeters (value list option, lime green group) and looks OK with your new perimeter curve. (now internalized, no need for Rhino file when the geometry is small)

This doesn’t address your issue specifically but maybe works better? Only one slider (‘P_pos’) that creates two points on each segment of the polycurve perimeter.



SG_1_2023Jun29c.gh (32.3 KB)

I understand now how it can happen, where ‘Crv CP’ is resulting in diagonals.

P.S. The ‘P_pos’ slider value must get segment lengths larger than the offset distance?


SG_1_2023Jun29cc.gh (27.3 KB)

1 Like

Sorry for the late response, thank you it works perfectly for what I need!