Skip to content

Optimises SVG vector files for sending to a cutting plotter.

Notifications You must be signed in to change notification settings

ianmackinnon/plotcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

plotcut

Optimises SVG vector files for sending to a cutting plotter.

Requirements

Usage

plotcut.py in.svg > out.svg

Process

  • Converts all path objects to open paths of 0.03mm width
  • Discards all other objects
  • Promotes all paths to top-level objects by removing them from any hierarchy while preserving transformations.
  • Creates an overlap on any closed paths to avoid gaps between the start and end points caused by the length of the plotter knife
    • For paths that contain any long, straight edges, this is a small overlap at the middle of the longest straight edge
    • For all other paths the whole first edge segment is repeated at the end of the path.

Limitations

  • Does not support the following SVG path commands (which will cause a fatal error): SsQqTtAa.

References

  1. W3C SVG Paths specification

About

Optimises SVG vector files for sending to a cutting plotter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages