Hello everyone, I have a simple question regarding meshes and subd objects.
I am trying to connect a group of joint and disjoint curves with multipipe, then convert them into meshes. The component works just fine event with thousands of curves, but I am having a problem separating the subd and meshes. What I need is to have separate shapes based on the intersection of the curves.
So for the curves seen in the image, I would like to have 8 mesh, but multipipe creates 1 subd object for all of them. So the question is, how can I separate subd objects or meshes based on connectivity?
Hi @pelok36084
Here’s a little script which takes a line network and separates it into nodes and struts.
It references some of the same graph functions that the MultiPipe component uses, so you’ll need to set the assembly reference for Kangaroo2Component.gha when opening it.
This will typically be in C:\Program Files\Rhino 7\Plug-ins\Grasshopper\Components
It takes a value as input for how far away from the point you want the nodes to extend.
It would be possible to also output the connectivity information from this graph if needed. multipipe_separate_nodes.gh (10.5 KB)
I was achieving a similar result with another workflow, but this doesn’t solve my issue. What I need is to have multiple subd geometries based on the connectivity of curves. So if the curves do not connect, I need them to be separate subd geometry.
So in this file, I need 15 subd geometries, but multipipe gives me 1 subD with 136 faces.
I was thinking, maybe it can be possible by grouping the curves that intersect with each other, though I couldn’t manage to do this yet… multipipe_segmentation.gh (23.6 KB)
Ah yes, the namespace was changed in a recent version.
So scripts like this one which reference it need to use eg
‘MultiPipeMethods.HalfEdgeGraph’
instead of
‘MultiPipe.HalfEdgeGraph’