Expand description
Set of function to modify geometric shapes
Structs§
- Shape
Modify Config - Shape modification settings. Supplied distances and ratios must be finite and nonnegative.
Enums§
- Shape
Modify Mode - Whether to strictly inflate or deflate when making any modifications to shape.
Depends on the
scopeof theHazardEntitythat the shape represents.
Functions§
- close_
narrow_ concavities - Closes narrow concavities in a
SPolygonby replacing them with a straight edge, eliminating the vertices in between. - offset_
shape - Offsets a
SPolygonby a certaindistanceeither inwards or outwards depending on theShapeModifyMode. Uses [geo::Buffer] to resolve intersections in the offset boundary. - shape_
modification_ valid - simplify_
shape - Simplifies a
SPolygonby reducing the number of edges.