Grasshopper

algorithmic modeling for Rhino

I have two "moving" points. These are A and B. A is always on the left handside and B is always on the right handside. The user should give the x- and y-coordinates for this point using sliders.

Now I defined a new point. This point is called B°. I also have defined a parameter specially for this point. This is the main parameter, that describes the circular motion of point B°.

If A is higher than B, then: Point B° is going to move clockwise in a circular manner untill the line between AB° gets parallel to the x-axis.

If A is lower than B, then: Point B° is going to move anticlockwise in a circular manner untill the line between AB° gets parallel to the x-axis.

I need to draw an arc between B and B° ... How do I continue on my own program to get this arc done? ... Thank you very much for your time ...

Views: 957

Attachments:

Replies to This Discussion

impossible?

I would suggest you use a magic trick: double click on the background of grasshopper opens a the "search" utility. Another trick: Ctrl+Alt+left click (stay clicked) on a component gives you the menu where the component is. When you have those two things, you just have to take the time to search and learn.

this IS magic

How can you define a parameter for a point?  This makes no sense.  Please explain.

Attachments:

Try this then.

Attachments:

I tried it, but it doesn't work when B is higher than A... it's still helpful and I learnt from it. I have two questions:

why is the tangent vector a vector showing in y-direction?

How come the x-coordinate of the arc starting point is the same as the distance between A and B?

Let A be higher than B ... Play t from 0 to 1 and see what happens.

Let B be higher than A ... Plan t from 0 to 1 and see what happens.

Attachments:

The Arc should have B as a startpoint and B° as an endpoint ...

What kind of vector (mathematically) do I have to plug in "Direction" of the Arc-component?

Attachments:

I think I need these vectors?

I guess this is the main problem, that I know have ...

http://www.grasshopper3d.com/forum/topics/vector-between-two-points

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service