Hello to all!
I am a complete beginner in Grasshopper and Rhino and I would like to ask for your help. Do you know how to define origin points for existing rhino geometry with grasshopper?
What I want to do:
I have a Rhino project that is populated with simple trees, they are not instances. I would like to replace the trees with more complex trees.
How I want to do this:
I want to create Grasshoper points that refer to the current position of the current simple trees.
I want to create new tree blocks and place them on the newly defined grasshopper points,
Is the first point. Do you know how to define grasshopper points based on Rhino geometry?
Or maybe you know any helpfull tutorials on that topic?
Thank you for your help!
Hi Wojciech, Without the geometry its a bit of a guess, but offhand a Bounding box of each object (tree) will allow you to get the bottom face of the box and create a plane. Add randomized blocks (elefront or similar plugin) to that planes with a random rotation.
Japhy thank you for your answer!
As I said, I am a complete beginner, so can I ask you how you would do this step by step?
I would be very glad if you could break this process into pieces.
The key phrase in
@Japhy’s reply was this:
Asking questions and getting answers is what this forum is all about. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions, but don’t think of them as rules and especially don’t think of them as guarantees.
1. Choose a descriptive title for your post
Don’t title your question Help! or I have a problem or Deadline tonight!, but actually describe the problem you are having.
2. Be s…
3. Attach minimal versions of all the relevant files
Sure, understand, I’m still getting used to the rules.
I send you part of my model in Rhino6, will be glad if you could take a look at it
I had to remove the tree tops and leave only the tree trunks because otherwise the file would have become too large, hope its not a problem in this case.
230312_Grasshopper_trees_rhino6_Vsmall2.rar (11.6 MB)
Hi Wojciech -
I’d say that’s against the rules, yes.
Always only post what is necessary to illustrate the problem. Also, since this is Grasshopper, post the relevant information internalized in a Grasshopper file.
As Japhy said, you’d create the bounding box for a tree and extract its “position”:
Basepoints of trees.gh (18.7 KB)
Apart from that, you are 1 897 860 units away from the Rhino world origin. You’ll want to consider moving everything closer to that origin.
Thanks a lot for your help Wim!
I ask for your understanding, because for me the basics are still a mystery. I only asked about this case because I couldn’t find an answer in the existing topics
Thanks again for the help and the general forum tips!
It’s common sense more than rules. Nobody needs to hear you are new to this.