Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Some noodley bits for plotting with chiplotle

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 hpgl
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 ronald_tools.py
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.

Something went wrong with that request. Please try again.