Move curve control points in correct order

Hi all,

I am working on a project where I need to move the edges of this curve in these particular directions (not that a 1D scale will not work here: only these hate to be moved)

In my script I did so by isolating the two pairs of points at the corners of the concerned edges, moving them and reinserting them in the point list to re-generate a new list.
Except upon re-insertion the points are completely out of order


How to solve this?

Thank you all in advance

260303_SSK_EX1_RHINO.3dm (310.1 KB)

260303_SSK_EX1_GH.gh (13.8 KB)

Hey @M_Thorez,

Your path of least resistance for where you are at the moment would simply involve sorting these points along the original polyline (+ removing duplicates):slight_smile:
260303_SSK_EX1_GH.gh (18.1 KB)

*Alternatively, if you’re up for it, given the various ways to achieve this, I’d go for PointDeform relying on the endpoints of the target segments—this will help you avoid the duplicate ‘control point’:
260303_SSK_EX1_GH_Pt-Deform.gh (15.1 KB)

1 Like

Hi,

Thank you for your help - I wasn’t aware those commands existed

1 Like