walkmap.svg

Utility functions for writing stereolithography (STL) files (and possibly, later, other geometry files of interest to us) as scalable vector graphics (SVG).

*preferred-svg-render*

dynamic

Mainly for debugging dali; switch SVG renderer to use. Expected values: :dali, :hiccup.

binary-stl-file->svg

(binary-stl-file->svg in-filename)(binary-stl-file->svg in-filename out-filename)

Given only an in-filename, parse the indicated file, expected to be binary STL, and return an equivalent SVG structure. Given both in-filename and out-filename, as side-effect write the SVG to the indicated output file.

dali-stl->svg

(dali-stl->svg stl minx maxx miny maxy)

Format this stl as SVG for the dali renderer on a page with these bounds.

hiccup-stl->svg

(hiccup-stl->svg stl minx maxx miny maxy)

Format this stl as SVG for the hiccup renderer on a page with these bounds.

stl->svg

(stl->svg stl)

Convert this in-memory stl structure, as read by decode-binary-stl, into an in-memory hiccup representation of SVG structure, and return it.