xsect.calc.polygon_points¶
-
xsect.calc.
polygon_points
(n, radius, thickness=None, is_inscribed=True)[source]¶ Returns an array of boundary points for a polygon.
Parameters: - n : int
The number of sides to the polygon.
- radius : float
The radius of the polygon.
- thickness : float
The thickness of the wall. If None, the cross section will be assumed to be solid.
- is_inscribed : bool
If True, an inscribed polygon will be generated for the specified radius. Otherwise, a circumscribed polygon will be generated.