Skip to main content

offset_shape

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. Uses [geo::Buffer] to resolve intersections in the offset boundary.