smarts.core.utils.geometry module

smarts.core.utils.geometry.buffered_shape(shape, width: float = 1.0) Polygon[source]

Generates a shape with a buffer of width around the original shape.

smarts.core.utils.geometry.triangulate_polygon(polygon: Polygon)[source]

Attempts to convert a polygon into triangles.