Grasshopper

algorithmic modeling for Rhino

grasshopper provides the default graph mapper, it works pretty good but I once wanted to attach it to the Galapagos component however, this feature is not supported in GH.

SO I managed to simulate the graphmapper with graph type:Bezier mathematically so I can input the coordinates of the 4 control points of the bezier curve "quadratic bezier curve" and a domain of number so we can get the opposite range.

*graph mapper vs math. mapper

The main pro of this method is that I can generate curved mapped range of numbers via the Galapagos component by attaching it to the 4 points "8 sliders"

*Curve from the generated numbers & the 4 control points

Quadratic Bezier curve fucntion obtained from here:

http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Quadratic_B.C3.A9zie...

and here:

http://html5tutorial.com/how-to-draw-n-grade-bezier-curve-with-canv...

*.gh file attached

Views: 2535

Attachments:

Replies to This Discussion

Hi, Im trying to attach you definition to a domain i created, but the result its not quite what I expected.
I´m not sure what am i doing wrong, I´m trying to use it as a blend curve tool, I have a -11 to -2 domain.
Any suggestions?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service