Hi everyone!
getFacesFromVertices.gh (20.9 KB)
I have this odd feeling of being stuck in something really stupid. I think once again data matching and trees are the problem.
I’m working with a mesh in Grasshopper, and I need to generate a Data Tree where:
Each branch corresponds to a vertex (its index is the
{i}
path).
Each branch contains the indices of the faces that include that vertex.
If I have a mesh with quadrilateral faces, I want to obtain something like this:
{0} → (0, 1, 3) # Vertex 0 belongs to faces 0, 1, and 3
{1} → (0, 2) # Vertex 1 belongs to faces 0 and 2
{2} → (1, 2, 4) # Vertex 2 belongs to faces 1, 2, and 4