I want to filter my combined list on duplicate points, but the problem now is that my combined list structure (in the List.Combine command) is gone. Is there a way to keep this structure but still remove the duplicate points?
As a start, take your PruneDuplicates node and get the first index of each item in each sublist with a List.AllIndicesOf node and some crossproduct lacing at level 2 and keeping the list structure. The next steps should start to unravel from there.
Using something like List.FirstItem might not work well for points with FP coordinates. You could try something along the lines of this in those cases:
Python would make this a lot easier. For each item check to see if it’s in a list of UsedItems. If it is, ignore it. If it’s not, append it to the list and then add it to UsedItems.
Hey Venkov thank you for this solution, i figured that the solution of Vikram has no room for a “too close to” input, with your script i can just add 0.5 meters for that as tolerance for the Point.PruneDuplicates node!