Hi MJD,
i took a look at your file and there are some problems and solution.
The set component will not work because you eleminate already all points with similar xyz values.
Your request to delete all similar x y z values is also not working because how do dertemine what is a corner and what is not a corner by value , this will only work with direction or comparing the value with the next value and the value before.
My advice is to find the corner points by comparion the segment between the control points with the next segment, then check the angle and if its in a defined tolerance use the index to create a true false pattern.
get_only_corner.gh (364.4 KB)
What kind of seperation you want…it is unclear for me what is the goal of the list seperation.
Another thing is …do you need only polylines or can you also use arc segments…i mean a g-code understand also arcs.