Module shape_modification

Source
Expand description

Set of function to modify geometric shapes

Structs§

ShapeModifyConfig

Enums§

ShapeModifyMode
Whether to strictly inflate or deflate when making any modifications to shape. Depends on the position of the HazardEntity that the shape represents.

Functions§

offset_shape
Offsets a SPolygon by a certain distance either inwards or outwards depending on the ShapeModifyMode. Relies on the geo_offset crate.
simplify_shape
Simplifies a SPolygon by reducing the number of edges.