From the course: Learning Grasshopper

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

How to make custom parametric math functions in Grasshopper

How to make custom parametric math functions in Grasshopper

From the course: Learning Grasshopper

Start my 1-month free trial

How to make custom parametric math functions in Grasshopper

- [Instructor] In another video, we looked at using the evaluate and expression components to make a parabola, where each value in a range mesh to one value in the output of our expression. But let's say we want it to generate a shape, something like a circle that has multiple output values for any given input value. Shapes like this are generated by parametric functions and a circle is a great example. Note that this is a separate definition from the parametric properties that we've talked about in Grasshopper so far. But simply put, parametric mathematical functions express their coordinates as functions of a non-coordinate variable usually called T. So the parametric function for a circle with radius R, is X equals R times cosine of T, Y equals R times sine of T, with T in the domain of zero to two pi. So let's take a look at how we would set this up in Grasshopper and I've got some pretty good starting points here…

Contents