simplifyBoundaries

pyslm.hatching.simplifyBoundaries(paths, tolerance=0.5, method='')

Simplify the boundaries of paths using Douglas-Peucker algorithm provided by the scikit-image library or an internal method within shapely.

Parameters:
  • paths (List[Any]) – The paths to simplify

  • tolerance (Optional[float]) – The simplification tolerance used

  • method (Optional[str]) – Not used

Return type:

Any

Returns:

Simplified paths