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
Tags:
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.
I made it the other way, thank you!
It's the square root of (the desired area divided by the current area).
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by