I’ve got the optimization working with fills and polylines – almost!

There’s still a pesky problem with some missing line segments, and the polylines aren’t joining together as much as they should.

For the SVG-curious (I am wishing that WordPress could display SVG files…):

reprap3.svg