Skip to main content

Module shape_modification

Module shape_modification 

Source
Expand description

Set of function to modify geometric shapes

Structs§

ShapeModifyConfig
Shape modification settings. Supplied distances and ratios must be finite and nonnegative.

Enums§

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

Functions§

close_narrow_concavities
Closes narrow concavities in a SPolygon by replacing them with a straight edge, eliminating the vertices in between.
offset_shape
Offsets a SPolygon by a certain distance either inwards or outwards depending on the ShapeModifyMode. Uses [geo::Buffer] to resolve intersections in the offset boundary.
shape_modification_valid
simplify_shape
Simplifies a SPolygon by reducing the number of edges.