Grasshopper

algorithmic modeling for Rhino

Hi, 

Does anybody know how to create a polygon by introducing its area and the number of segments? I tried getting the radio of a certain area with r=√ (A/π) but it doesn't give back the same area when I intoduce this in the polygon component.

Thanks,

Martina

Views: 558

Replies to This Discussion

Assuming a regular polygon, internet says it's: r = sqrt(2*a/(n*sin(2*pi/n))). This seems to work.

If you are lazy you can always create a polygon of any radius, calculate its area and scale it using the square root of the desired area divided by the current area.

Hi Vicente, thanks for your answer. I tried the second option and it didn't work. Am I doing anything wrong?

I made it the other way, thank you!

It's the square root of (the desired area divided by the current area).

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service