Function offset_shape

Source
pub fn offset_shape(
    sp: &SPolygon,
    mode: ShapeModifyMode,
    distance: f32,
) -> Result<SPolygon>
Expand description

Offsets a SPolygon by a certain distance either inwards or outwards depending on the ShapeModifyMode. Relies on the geo_offset crate.