Grasshopper

algorithmic modeling for Rhino

Looking for advice on how to model a 3d parametric tree structure

Hi everyone,

I would like to model a tree structure. Here is a drawing of the kind of form I would like to achieve: Tree.jpg

- I have looked into L-systems and found rabbit is able to create a tree structure

- I have also found a shortest walk tapered branching script which is even better

- I have also looked for ways to achieve a tree with minimal paths but have struggled 

I am very new to rhino and grasshopper so the coding/scripting is going over my head right now but I would really like to develop a good understanding of how it all works. 

If anyone knows of any tutorials that would take me through the process of making a script in grasshopper/rabbit/cocoon to make a tree structure that would be amazing.

Also if anyone has any suggestions in terms of methods I could use to achieve this tree form I'd be very grateful to hear them.

Thank you very much for your help!

Sean 

Views: 2676

Replies to This Discussion

You can do this with shortest walk... sort of.

Attached is a starting point. It creates a lofted surface of the tree you want to create then populates that surface with random points and then finds the shortest walk between points around either end of the surface through the random points on the surface.

The definition uses Cocoon and Weaverbird plugins (and Shortest Walk obvs!). I've disable the Cocoon and WB bit so the model loads quicker. You will still need to install Cocoon and Weaverbird though and you can enable that part of the definition when you are ready. It thickens the lines that define the tree into a mesh.

To make it more like the tree in your picture you could create a lofted surface for the top of the tree, a lofted surface for the base of the tree and another lofted surface for the trunk. Populate the top and bottom surfaces with random points and merge the points into one list for the shortest walk component. That way, I think the branches would flow in straight lines up the trunk because there would be no points in the trunk surface.

Attachments:

Hi Martyn,

Thank you very much for this amazing response. Unfortunately there seems to be a problem and the model is not loading.

When I load it in it says I am missing the 'removeDuplicateLines' component from the plug-in 'Kangaroo Components'. I have installed that version of kangaroo but am still getting the same error message - that object doesn't seem to be included in the plugin. I have installed all the other plugins.

Do you have any idea what might be the problem?

Many thanks for your time, much appreciated.

Sean

Attachments:

You surely have version 2 of Kangaroo, install also the 0.99 !!

Yes Laurent is right... RemoveDuplicateLines was Kangaroo 0.99

Thanks for the quick response guys. Yeah I did install the 0.099 version and it's not in the objects. I have checked all the previous versions objects and I can't find RemoveDuplicateLines in any of them. Maybe the object is in one of the versions previous to these that are installed straight into the components folder - I'll try installing some of them and see if I find it.

I wasn't installing it properly - apologies, like I said I'm very new to all this.

I still can't see anything in rhino however. The script has two warnings but I can't figure out what is wrong. I have attached a screen shot of the script if you have a chance to look at it.

Thank you! 

Attachments:

That doesn't look like the file I sent you!

The file I sent you was called Shortest_Walk_Tapered_Cocoon_Tree_MJH.gh

The file in that screenshot is called Shortest_Walk_Tapered_Envelope_Curves

Have you tried opening the file I sent you?

Yes, apologies I was opening the wrong file... It's great what you've done here - really appreciate this starting point you've given me, thanks a lot!

Hi guys,

I've finally had a stab at making the starting point you sent me to look more like my drawing. Here is the result if you are interested. I'm sure my scripting could be tidier, but I followed your suggestion Martyn and it seems to work well! Thanks again.

Now I just need to build my breath sensor and decide on how the tree will change with the rate of the breath. Maybe inflate/deflate, change colour, grow etc - I need to figure out what is possible! I'll be using Arduino and firefly - should be fun!

Attachments:

Good work! Interesting project!

Yes it is my file. You inverted discussions. First warning, you have to "set multiple curves" (bake curves from duplicate lines) or connect it with output  of duplicate line. I tried to explain it in the other discussion. 

The second is because of the first !

PS : Why making screen copy in pdf ? Png or jpg is simplier, no ?

Ah ok thanks a lot Laurent, really helpful. 

I'm using rhino in bootcamp and the only place I could paste a screen shot was in open office so just saved a pdf from there. Maybe I should be able to find the screenshots saved somewhere - I'll look next time! 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service