Deconstruct Mesh - Tree structure

Hi,

I have a data structure with N branches. Each branch has mesh entities as objects. What I would like to highlight is that not all branches have the same number of mesh objects. Then, I would like to apply the DeMesh component (Deconstruct Mesh) to obtain the vertices as list.

My problem is that the tree output after DeMesh does not keep the original size due to the fact that the number of mesh objects inside each branch differs. I will try to illustrate with an example below (P stands for Point). This is the current situation

For my algorithm it is not importante that A (see image) has two different meshes. The output vertexes of both should follow under the same branch after DeMesh has been applied. In other words:

Furthermore, the data structure should be kept the same, ie, {0;0} → {0} as shown above.

Thank you!

Just put your files and your goals.
See this:
Help Us Help You - Grasshopper - McNeel Forum

@Quan_Li ,

Thank you for your reply.

I thought I was helping by going straight to the point. My grasshopper file is far too big and complex to share through here. Anyway, see attachments.

Please neglect the step flagged below as I just went through them to artificially produce the data in the format I need to feed DeMesh with in my grasshopper file.

This is what I would like to see, instead:


DeMesh routine.gh (9.0 KB)
DeMesh routine.3dm (11.4 MB)

Like this?

Well… Yes, just like that. I didn’t thought trimming would automatically solve this but it makes sense. Thanks!

Shift Path?