Grasshopper

algorithmic modeling for Rhino

I'm new to GH and I'm sure there's an obvious way of doing this, but I can't quite figure it out.

This is to setup sightline sections for stadiums or theatres.

You have starting dimensions for D1, H1 and A1 that define the first eye point, P1.
Then a row width and a constant value for C that define the next eye point.
Angle 2 will then give Height 2, Height 2 gives Angle 3 etc...

You can easily do this as a series of functions that follow on from each other,
but there could be a very large number of these, and also a variable number, not a great way to do it.

What I really want is three series that output numbers to define values for Distance, Height and Angle.

D can be defined as a series, but H and A need to be calculated sequentially.
A2 gives H2, then H2 gives A3 etc... One series needs to the input of the other and vice versa. Doesn't work with Logic/sets/series as you end up with circular inputs.

Any ideas on best way to set this up greatly appreciated.

Thanks.

Views: 684

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Could you set up the series to define D and also use another series for the angle since it is changing at a constant rate?

Use these two series, D and theta, to then calculate H = D * Tan(theta). Then you'll have the height of line H and location (end point of D) and you can complete the triangle.

Hope this helps.

GM
Hi. Unfortunately the angle change isn't constant. The "C" dimension is constant, but the angle increment gradually decreases as you go up the tier.

P.
is there a formula you could use to determine the angle in terms of D? or would it make sense to use the angle as a variable? im having trouble understanding without a partial definition... do you have one?
I've got the start of one, will upload it later.

Thanks
It does what it's supposed to, but there must be a simpler way of doing it...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service