round_polygon_corner#
- zeroheliumkit.src.utils.round_polygon_corner(polygon: Polygon, corner_index: int, radius: float = 1, quad_segs: int = 8) Polygon[source]#
Rounds one corner of a Shapely polygon.
- Parameters:
polygon (Polygon) – The input Shapely polygon.
corner_index (int) – The index of the corner to round (0-based).
radius (float) – The radius of the rounded corner.
quad_segs (int) – Number of segments for the rounded corner arc.
- Returns:
A new polygon with the specified corner rounded.
- Return type:
Polygon