Skip to main content

Module polygon2d

Module polygon2d 

Source
Expand description

2D polygon operations: clipping, filleting, chamfering, and segment detection.

Functionsยง

chamfer_polygon_2d
Cut all corners of a 2D polygon with flat bevels.
cross_2d
Cross product of vectors (b-a) and (c-a).
fillet_polygon_2d
Round all corners of a 2D polygon with arc approximations.
find_common_segments
Find common (collinear, overlapping) edges between two polygons.
sutherland_hodgman_clip
Sutherland-Hodgman polygon clipping algorithm.