Hi,
I'm searching how to calculate the rounding radius maximum value of a n-Side object.
I tried with the following but it doesn't work:
Float calculateSide(Int32 n, Float r)
{
Float theta, theta_in_radians;
theta = 360 / n;
theta_in_radians = theta * 3.14 / 180;
return 2 * r * sin(theta_in_radians / 2);
}
Float max_rrad = calculateSide(n, r)/2;
Thanks