Hi!
I would like to dispatch a list of points (yellow panel 1)
to match with another list with null items (green panel 2)
my try is in yellow panel 3, and it doesn’t work good…I tried to simplify/graft but it’s still not good…
Actually I want to do that to avoid duplicating all the actions (between panels 1 and 2) and try to clean up a bit my model because it’s starting to be very slow…
I guess there is a way to clean that no ?
I’m a beginner on GH… sorry for this crazy messy file…
Thanks in advance for your help
treedom8.gh (48.7 KB)
Hi Joseph,
Sorry for this, I uploaded an image on my first post but it seems to be invisible…?
Here is an updated GH file with the named panels (with numbers&colors)
Actually, I want to match patterns in text panels yes :P… but it is to avoid to complexify too much the file because it’s starting to be heavy on my computer. (when I move the parameters as angles or lengths of the branches for example…)
tell me if I’m not clear…
Other than matching patterns in a text panel, I don’t understand what you are trying to do?
I have no interest in just matching patterns without a clear statement of your objective.
Your latest code doesn’t address the other two issues I mentioned either.
Have you used the Profiler to see where the bottleneck is in your code? I see that SDiff takes 10.4 seconds, which is most of it. Disable that until you have the rest of the code sorted out.
Hi Joseph,
thanks and sorry again what I want to do is a kind of forest with poles and branches on them
with random directions for the branches, (1 by face on each pole, so 4 by pole)
the result should look like that but more dense and contained in a semi sphere volume:
removing the sdiff helps a lot! thanks!
I’m still wondering if I can simplify the code because I will still have to repeat these actions in order to get 4 branches by pole, with other heights, lengths and directions…
also, I didn’t know the “profiler”, how do you use it? treedom9.gh (49.6 KB)
This might be amusing? Added SUnion to join each pole to its branches and a ‘Color By’ switch using either ‘Height’ or ‘Volume’ of the solids (Value List, teal group). Note the Profiler benchmark of ~3 seconds for SUnion, so I disabled it and enabled Preview for both Cap Holes components.
ABSOLUTELY Fantastic!
Thanks a lot. It’s impressive how simpler it is the way you wrote it.
I’m still trying to familiarize with the logic of lists and powerful tools like random or evaluate…
now the model is very fluent on my computer
I’ve just added two “negative” in order to have branch lengths inversely proportional to their heights
I can’t tell much from a screen shot of your code… Using a negative angle looks harmless but I don’t see any reason for using a negative on the domain component? Negative branch lengths? Maybe that explains why you need the negative rotation angle? It doesn’t look correct to me.
P.S. It would never occur to me to apply Negative to a domain. Did you examine the effect? It reverses the two values and makes them both negative. Definitely NOT the correct way to achieve “branch lengths inversely proportional to their heights”.
Ok…
I don’t know; I did it and it works so that was ok for me.
I put the first negative component “domain” and the branches were towards the ground like in your screenshot, so I put a negative on the angle and the result looks good…
what would be the good way to make branch lengths inversely proportional to their heigths?
here is the code: treedom10.gh (24.3 KB)