Grasshopper

algorithmic modeling for Rhino

Hi,

 

I am new to grasshopper and wondering how I can rotate a panel about its central pivot in both the vertical and horizontal axis. I am attaching my grasshopper definition for your reference.

 

Many Thanks,

 

Pratik

Views: 2534

Attachments:

Replies to This Discussion

Hi all,

 

I think I have made some progress but have not yet resolved it completely. I now have the individual panels with their central pivot located. Still unable to work out how I could rotate those panels about their pivot and responding to the sun's movement. I have been looking at the discussions but haven't got very far. We had done a similar definition as a group earlier, here the panels were rotating about an axis and resopnding to the sun's movement. I am attaching both the group study definition and my present definition for your reference. Can someone please help asap (would be even more helpful if you could add to definition as oppose to explaing the process). Thanks so much in advance!

 

Attachments:

so here you have:

its easier to work with reference planes so yo can orient any geometry from a ref plane you choose (in this case the plane within the norma vector and the sun-center point vector) and the planes which you rotate the angle you compute...

Hope this is what you've been looking for.

but sorry, I made it on your study group def. not in yours¡¡¡¡

Attachments:

Thanks you so much Antonio, that is exactly what I was looking for. Pratik

Hi pratik¡

I think it's easier than the way you are attenpting:

First of all, due to the distance of the sun, it's rays can be reasonabily computed as parallel vectors.

So the thing is: extract the normal vector of each panel, compare its angles with your sun's vector and rotate each one -º.

Could it be that way? if it is, tell me and we can see this.

Regards, Roig

well, there's no much difference if you compute sun rays as parallel or focused, the way would be the same.

Can this definition be turned into a single-axis rotation? Preferably, being able to move in the vertical axis but not in the horizontal axis.  

Hi Kevin, I have been working on this and here is what I have done. You need the lunchbox grasshopper add-on to flip the surface (go between horizontal and vertical surface orientation), but link a surface and an attractor point and the generated louvers will point their normals towards the attractor point along a singular axis. GH version 9.0014.

This is probably too late but it may help someone else who comes to this thread :)

Matt

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service