The extension was made to clean up heavy PDFs exported from SketchUp, but can probably be used in various other situations too. This plugin will remove straight lines which are smaller than a given threshold (tested unit: mm) to purge a huge graphic from noisy elements. It won't work for polylines or other curves. Please also see Colorize Path Lengths which behaves similar but visual (and without any removal).

Limitations

  • This plugin might run really slow on large graphics! It might eat 1GB of RAM and more
  • only works for straight lines (polylines would be cool and some selection of the desired unit!)
  • this plugin does not work with lines which are exactly vertical or horizontal (known issue). You can change this behaviour just by taking the whole image and make a slight rotation:



Example to generate some noisy graphic

Using Centerline Trace

Break Apart (Ctrl + Shift + K)

Having a messy image to "clean up":

Do some fine rotation (avoid error mentioned in description)

Result


Non-working example (massive RAM usage and after ~10 minutes of calculation)


Example to generate some noisy graphic

Using Centerline Trace

Break Apart (Ctrl + Shift + K)

Having a messy image to "clean up":



Do some fine rotation (avoid error mentioned in description)

Apply

Fail



  • No labels