pyboxbuilder.paths.polygon_convex_corners

pyboxbuilder.paths.polygon_convex_corners(path: Sequence[tuple[float, float]]) → list[int][source]

Return indices of convex vertices (outer corners) of a closed polygon path.

Parameters:
path: Sequence[tuple[float, float]]

Ordered vertices of a closed 2D polygon.

Returns:

List of vertex indices that are convex (exterior corners).