Grasshopper

algorithmic modeling for Rhino

Here is a small script for wrapping/winding a polyline/filament around a mesh. This script is derived from Daniel González Abalde script "http://www.grasshopper3d.com/forum/topics/searching-for-code-to-ge..., it add an angular variation in direction of polyline.

Above to pattern generated on Stanford Bunny.

A "sin" winding on an ellipse, in fact angle equation is "CoeffA*(sin(i)*0.5+0.5)^CoeffB"

Views: 4262

Attachments:

Replies to This Discussion

I had not thought about the implementation of mathematical formulas in this.
Great, a new toy to learn. Thanks!

Dear Daniel,

Can you tell me where exactly to add expression "CoeffA*(sin(i)*0.5+0.5)^CoeffB" . I tried adding but its not working. Thanks in advance.

Regards,

Vinay

Thanks for sharing!

Thank you very much for sharing.

But can you please tell me where exactly to add expression "CoeffA*(sin(i)*0.5+0.5)^CoeffB" . I tried adding but its not working. Thanks in advance.

Regards,

Vinay

The equation is inside my script. There is à Button for choising it.


say you are at the step i the équation calculate the new direction
Hope it heps!

Thanks for the reply. But I could not find the equation. I am very new to Grasshopper, sorry. Can you please help. Thanks.

Here is a screen shot

The equation is "maxx*(sin(x)*0.5+0.5)^y" its results feeds AngleDeviation list of angles. Imagine you are walking on this mesh, at each step "i" you change your direction depending of AngleDeviation(i). With this equation angle is always positive between 0 and maxx, and with y=1 it is a sinusoid. 

Thank you very much for the elaborate explanation, I understood neatly and it helped me. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service