Grasshopper points to Rhino Geometry

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:

  1. I want to create Grasshoper points that refer to the current position of the current simple trees.
  2. I want to create new tree blocks and place them on the newly defined grasshopper points,

The problem:
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!
Wojtek

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.

1 Like

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:

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 :slight_smile:
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 -

image

:see_no_evil: 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”:
image

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.
-wim

1 Like

Thanks a lot for your help Wim! :slight_smile:

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 :slight_smile:

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.


trees_2023Mar12a.gh (8.3 KB)

1 Like