I spent some time looking at the solutions you proposed:
the 1st method seems to work better, it is exactly what I wanted to achieve
and it is very well explained. Thank you.
There is another thing I am thinking about: Voronoi diagram generates many short edges (see image below)
These edges could be eliminated and have a more simple mesh configuration.
So, what I am trying to do is weld de closer points using Cull Duplicates and a tolerance of proximity of about 6 mm. It works if you flatten the tree, but then I loose the tree structure and I am no longer able to get my closed polylines.
On the other hand, If you don’t flatten it will keep the old points in adjacent polylines’ branches.
Trying to weld the points once the mesh is done would collapse some faces, that is way I would like to perform the operation before.Average-points.gh (60.2 KB)
I have to figure out how to flatten and average closer points;
find index of eliminated points in the tree;
replace them with the averaged points.
Cull Duplicates has to outputs, I and V … but I don’t know how to use them.
Thanks in advance. Definition is here.