Grasshopper

algorithmic modeling for Rhino

Hello, I am a beginner with GH and I don't know if my question is stupid or not,

I was wandering how to control the area of a circle from a slider. The radius should vary as I control the area.

Views: 1786

Replies to This Discussion

If have grabbed a simple slider i would control only the radius, but I have figured it out like this.
Thanks anyway for replay.
Attachments:
Rearrange the equation for a circle area
A = Pi*r^2 where r is the radius.
therefore r = sqrt(A/Pi) or (A/Pi)^0.5.

This can all be done in an F(x) expression component or with a Divide Component (Slider value divided by Pi) then into a Square root component (if there is one, I can't remember, if not a powers component with 0.5) this will give you the radius to plug into the circle.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service