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