Grasshopper

algorithmic modeling for Rhino

Hi there. I'm building a definition that will create a serie of panels thta should react to the sun incidence angle. So far it works but my problem is the incidence angle. When i convert the resulting angle from RAD to DEG it does not look right (see image) the angle should be 90 deg not 135 as it showns.

Any ideas

thank all

Views: 640

Attachments:

Replies to This Discussion

hi, i don't have rhino+gh on this computer now, so i cannot have a look at your definition file... but i tried to convert 2.356 radians to degrees on my calculator and the result is exact, 135 degrees... probably the angle is calculated on one of the faces that r not parallel to xy plane... just guessing!
you are right. The angle is calculated at a PT that is not perp. to the surface. I solved the problem by given gh a 3PT plane derived from the surface. Now my problem is the folowing
I need to tell GH to open a given panel according to this rule:

if angle is betwenn 0 to 45deg then panel open up to 75deg
if angle is betwenn 46 to 90deg then panel open up to 30deg
if angle is betwenn 90 to 135deg then panel open up to 30deg
if angle is betwenn 136 to 180deg then panel open up to 70deg

any ideas how to do this without a VB component

thank you all
Hi Claudio

May be you can use the Dispatch component here.

Take a look at this short video clip to see if this is what you are looking for:

http://web.me.com/rhino3dtv/GH/GH_05_17_What_If.html

Andres
That is a good start. I thin i can use it. But I still have a question. How can I write a function where the variable (x in this case) is between two number. Somethig like this:
46> x <90
How can i write this in a function component
thank you

cheers


The A output will give you TRUE if x is larger than 46 but smaller than 90, FALSE if x is larger than 90 and NULL if x is smaller or equal to 46
Ok this is what I up to now: The idea is to give GH a condition on to which the panels will operate. Considering that the sun incidence angle in theorie goes from 0 to 180 deg. the panel must be open only between 46 and 135 deg. This condition will give me a boolean answer so, True= 35 deg (open) False= 70 (open). I guess i will need to dive in to a VB component. If you think this can be achieve otherwise...let me know

Lars I think your definition could work also... I'll give a try

Thank you

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service