06-04-2005 01:11
From: SuezanneC Baskerville
The interior angles of regular polygons are given by the formula ( (n-2) * 180 degrees ) / n where n equals the number of sides.
In the attached diagram the formula yields the angle I.

We can make a regular polygonal cylinder using topsize to adjust the value of angle J shown in the diagram, which is half of angle I, the interior angle of the polygon.

For an octagon the interior angle I is 135 degrees, giving us a half-interior angle J of 67.5 degrees.

The following code fragment, when properly placed in a script in an object , will set the angle J to 67.5., or other angles as needed for polygons with different number of sides.

Nice. :D
_____________________