Grasshopper

algorithmic modeling for Rhino

How to get sine curve to flow along an exponential/sine/cosine/rhino curve?

I'm trying to get some curved rectangular panels (made on rhino) to fluctuate in a sine or cosine frequency, but I can't seem to get a sine/cosine curve to flow along another curve. Please help :)

Views: 2580

Replies to This Discussion

Hi Rachel

Try Attached code.. At present i have only made it so it sends a Sine Crv (though this could be changed for cosine crv) along a rhino crv input crv, but this could also be changed to any crv.


Hope this Helps

Matt
Attachments:
Thank you so much, Matt!

If it's not too much of a hassle, could you please explain what PFrames and pComp are, how they work etc?

Thanks for the help!
Sure Rachel,

To Start with PFrames... These are planes perpendicular to the tangent of the crv at that point space at equal distances along the given crv. This component will always give you one more frame than the input number as it is counting segements not the planes. If you want the number of planes to match the slider just type N-1 into the expression Editor of the N input on the PFrames Component.

I must say I can't explain the align option as in the process of trying to explain this i seemed to have disproved my own theory..Hummm. Maybe David can enlighten Us.

Note is you just want one frame at a set point use the PFrame Component, this can be also used for setting PFrames along a crv by lenght if you use the Divide Lenght Component to get the t values for the PFrame input.

Ok secondly the pComp Component. this component gives the the origin point of the plane and the 3 vectors that denote the plane,the XY that an be seen and the Z which is the planes normal. By default the amplitude of all the vectors is 1, thus the Amp is used to make this a parametric vector lenght for the Move Component.

A quick way to rev the direction of the X/Y/Z vector is just to input -V (if it was going into the Amp component say) Thought for starters you may want to just you the rev vector component so you know what happening quicker at a glace as code is not massive thus not needing to be optimismed.

Hope this helps

Matt
Thanks a lot for that, Matt. Most of it made sense in my head!

i think its great topic, mathematics Aspects.

i wish to have a section for Grasshoper3D mathematics & Geometry   

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service