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.
I’ve tried using weaverbird, but I can’t get what I’m trying to do to work.
Any help or suggestions would be appreciated.
JaredPolyhedron.gh (13.5 KB)
Thanks! I think I’ve improved the clarity.
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)
- Indices of other things in another List (case vertex to edges etc etc).
Thanks all for the replies. I’m trying to create a group of connecting planar faces like in the lower part of the image below:
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.
Does this help? I’ll try to find something better to show what I’m trying to do.
Thanks for clearing some things up.
Here’s what I came up with:
The script is pretty straight forward. For now, it creates closed breps, but I guess it would also be possible to create watertight meshes from this.
I hope this comes close to what you want to achieve.
PolyhedronV2.gh (24.3 KB)
This is exactly what I was trying to do! Thank you so much!