Ata Tree Gets Disordered After Surface Split

Hie,

I have surfaces organized in a 5-branch tree by layer. When I cut them with lofts, the output tree structure doesn’t match my original layer organization - my fragments are appearing in the wrong branches. I’m using a Human component to extract layers (if anyone knows a native alternative, please let me know), but I can’t figure out where my data tree is getting misaligned. I need to maintain the correspondence between surface fragments and their original layers. Can anyone help?

Forum_5_v1.3dm (250.8 KB)

Forum5_v1.gh (21.7 KB)

You also have a .gh file? Regards, Eef

Sorry, i have attached the wrong file. I have changed it in the first message.

Thanks.

Dear John,

For what I can see. The Breps and Cutters have the same number of branches and are nicely combined as is visible in the Param Viewer (Draw Tree).

You have internalised the “Cutters” in the component, there fore I cannot check, if the order of both trees (Breps and Cutters) are the same.

You might use:
Construct Path + Tree Statistics (to be used on the input of Cutters) so see if this order is correct.

Regards, Eef

1 Like

Thanks so much.

This is the structure of the split.

Regards

could you upload that .gh too? Regards, Eef

1 Like

Eef,

I have attached two files that reproduce the problem from the original but simplified. The error is the same.

Regards

Forum_5_v2.3dm (94.7 KB)

Forum5_v2.gh (9.3 KB)

Dear John, I simplified it even more:

  • All breps/geo internalised (then you do not need to upload the .3dm file
  • Deleted the placeholder from a plugin you used. (on the forum best is to not use plugins (keep it basic, unless of course it is a question about the plugin)

As I understand you want to keep the order of the original 3 Geometries (consisting of 3 objects).
With Merge, or Graft, this order will be disturbed. I guess there are other solutions, but for me it works to use Entwine + simplify to keep it better readable.
Now the 3 Geometries are visible in the output.

NB: Working with trees, is for many people (at least for me) the hardest part of Grashopper.

Regards, Eef
Forum5_EW.gh (9.0 KB)

1 Like

Hello.

The reason for including the “Human” component is because it’s the only way I know to get the layers where the surfaces are located. I’ll look to see if I can find another way, and maybe with that I can manage to keep the layer relationship between each surface and the ones created by the cut.

Thank you very much for the explanation.

I do not even know what Human component.
You might open a new question, with just that issue.
Surely there will be a common component for it.

1 Like

1 Like

Open this .3dm, inspect it, then open the Grasshopper file and press Push Content:


Forum_5 VR 01.3dm (320.8 KB)
Forum5 VR 01.gh (31.9 KB)

1 Like

Hi,

what is the name of the element you are using to display the tree structure?

Hie,

I think that use param viewer.

Regards

1 Like

as @JohnFrost says:
Param Viewer .Rightclick on the centre of the component + choose ->(Draw Tree).

1 Like