Grasshopper

algorithmic modeling for Rhino

I'd like to share with you this work, because I saw grasshopper missing a bisector node, maybe someone could need it, it will work with every 2 incident lines (intersecting or not) the 2 lines can be constructed in any random angle plane.


I'm wondering if there is a way to tell to grasshopper to pick the second node setup if the first one give a null output (if the 2 lines are parallel, the bisector node won't work, but with the other setup it could give a midline between the 2 parallel lines) can anybody explain me how to do?

Views: 3146

Attachments:

Replies to This Discussion

Hi Riccardo,
just for comment...
The direction of the bisector corresponds to the average of the two vectors. See attached.

Attachments:

At first I have tried to make an arithmetic average with simple addition and division nodes, but didn't work fine, maybe I messed up something with the tree branches, so I decided to proceed with a graphic method :)...
I didn't know about the existence of the average node, thank you very much! It's much more clean and light!


And do you know If there's a way to tell grasshopper to pick another path if there is a null output in a node? a toggle button should work fine too, I could toggle it manually if I'm in case of parallel lines

Thank you very much!

Can you suggest me a good site or manual to study all grasshopper nodes one by one?? I don't want to abuse of your kindness

Well, memory and patience are not my friends (unfortunately), if you ask me I will tell you: be self-taught. My manual was and is this forum, and the best way to learn the components is looking for problems and solutions, not from theory. The learning process is much more nutritious if you start with a problem and then looking for a solution, as you have done, not vice versa, because where more you learn is from mistakes or find ways to optimize your successes. Thus, when you know a new utility, besides the satisfaction and the... "you were here! :'o ", you will have a broader view if you have already confronted with the problem that solves that component.

But if you have memory and patience, you can check one by one the components and consult in the forum when in doubt. I do not know of sites or manuals for that.

***It is said that an expert is one who knows all the possible failures in their discipline.

I supposed... than I think you'll see me often here in this forum, because I just started study grasshopper and I have no mentors to count on.
Anyway I'll try to resolve my problems alone as much as i can.
Thank you again

What's the name of the node with many xxXxXxX? I can't find it

It's probably a VB scriptable component with code: N = Nothing

Attachments:

I did it! thanks a lot

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service