pyboxbuilder.box.features.regular_polygon_path¶
-
pyboxbuilder.box.features.regular_polygon_path(sides: int, *, apothem: float | None =
None, diameter: float | None =None, radius: float | None =None, orientation_deg: float =0.0) tuple[tuple[float, float], ...][source]¶ Generate closed 2D polygon vertices for a regular N-sided polygon (FR-102).
- Parameters:¶
- sides: int¶
Number of sides (N >= 3).
- apothem: float | None =
None¶ Inradius (half flat-to-flat distance) in mm.
- diameter: float | None =
None¶ Full flat-to-flat distance (2 * apothem) in mm.
- radius: float | None =
None¶ Circumradius (distance from center to vertices) in mm.
- orientation_deg: float =
0.0¶ Angular offset in degrees.
- Returns:¶
Closed polygon vertices normalized to [0, W] x [0, L].
- Return type:¶