Grasshopper

algorithmic modeling for Rhino

Hello everyone!

I have a problem- I want to rotate helix curve frames so that they are aligned to curve but also parallel to worlds ground plane.

In my thoughts I should rotate planes around Z axis but I don't know how to find correct angle... 

So that next i can sweep rectangle and it's top plane is parallel to ground plane.

Please see attached file. 

Atis

Views: 1945

Attachments:

Replies to This Discussion

Is this what you are after? There is certainly a faster and more elegant way to do it but this should work for now...

the logic is: create XY planes on the same points as PFrames and align them with the vectors from the PFrames.

cheers,

Nikos

Attachments:

Have you tried using Horizontal Frames component?

the faster and more elegant way that I was sure existed.... Duh!...

the beauty of grasshopper is the many ways one can reach an objective.

your outputs could come in handy in further development of the definition.

Many thanks guys for responses, but problem is bit different: 
I have to rotate plane so that let's say Y axis is parallel to ground, but Z and X following curve.
So that i can sweep any curve shape (not just rectangle) and one of it's sides is parallel to ground.
And that is depending to Z axis rotation (i think so)..

In capture bellow i have marked with red plane sides that must be parallel to ground.
Thanks! 

Just plug you PFrames into a Align Plane Component and for the direction just plug in a z vector component

[Align] with UnitZ

i guess i got confused by: "So that next i can sweep rectangle and it's top plane is parallel to ground plane." By "top plane" I thought you meant the top cap of the brep... anyway, good luck with your project!

try this the red ones you highlighted are parallel to xy (x to my definition), their y is perpendicular to each and the z is aligned to the perpendicular frames that are ''following'' the curve

Attachments:

omg! that easy!!! THANK YOU GUYS!!!!!!!

LoL

or do what i did with one component AKA [Align] with UnitZ

(nikos see?)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service