Hello,
I’m trying to create surfaces connecting lines to the closest neighboring lines. These lines come from connecting a group of points on a mesh to a single point below the mesh I’m struggling to create planar surfaces between the lines connecting the surface points to the lower point, as seen below.
Instead of trying to connect closest lines to form surfaces, you could try to make closed, planar polylines and transform those into boundary surfaces. This would entail that you have all the vertices, forming the polyline, in the right order in lists or even tree branches. Coming up with the sorting algorithm for the vertices would be the hard part here, but not that difficult to achieve.
Could you maybe upload a file with a prototype geometry that you want to parametrise? It is quite hard to understand what you want to achieve from the line drawing. I’ve taken a look at your GH file, but I seem to be missing the Face Boundaries component.
In general (and IF we tread this as a graph) you should use VV connectivity (V for vertex or node). Sandbox does some stuff on that matter (but it doesn’t work if you encounter islands in your graph - anyway forget that case).
But if the whole thing of yours is due/from mesh Faces you should use mesh connectivity. Not sure if GH provides a native component that sorts the vertices per Face (Note: there’s a RhinoCommon Method for that [works on TopologyVertices]).
That said connectivity is a DataTree of integers where branches point to indices of things in a given List (for mesh: vertices, edges and faces) and items are:
Indices of the same things on the same List (case vertex to vertex connectivity etc etc)
OR
Indices of other things in another List (case vertex to edges etc etc).
In my case a shared face is okay. The image below is a good example of what I’m trying to do. The right side of the images below aren’t important to what I’m trying to do. The left side is really important though, except my faces can be one surface where they connect.