Some noodley bits for plotting with chiplotle
Python
Permalink
Failed to load latest commit information.
hpgl initial commit Aug 15, 2011
.gitignore add .gitignore Aug 16, 2011
README.md fixed README Aug 15, 2011
ronald_tools.py stick test code where it belongs Aug 16, 2011

README.md

Ronald Tools

These are some tools I'm noodling with to make my plotting with Chiplotle tastier and more efficient. Currently, I'm focused on optimizing the drawing path to minimize seek times.

I'm learning python as I go, so do be gentle, but feel free to tell me all about how stupid I am.

pupd_to_paths(hpgl)

Slurp in PUs and PDs, and converts them to a chiplotle group of simple paths. This is probably very fragile, but its works on the simple output of pstoedit -f hpgl.

distance_between_coordinates(p1, p2)

Doi. Pass it two coordinate objects, recieve the distance between them in plotter units.

length_of_path(path)

Takes a path object, returns its ful length in plotter units.

length_of_paths(group)

Takes a chiplotle group of paths, returns the total length the pen was down.

length_of_seeks(group)

Takes a chiplotle group of paths, return the total length of seeks between paths.

efficiency_report(group):

In progress. Reports on drawing vs. seeking, possibly with comparisons between sorting routines.