Close

Edge Settings hit the UI

A project log for Boxes.py

Cut out boxes and other stuff with a laser cutter

florian-festiFlorian Festi 11/01/2016 at 23:060 Comments

All but the very simplest edge types do have an Settings object associated with them. This allows precise control over how they are rendered from the API. The user interfaces - the web and command line - were limited to the most urgent parameters - like sizes and may be edge type. I had added settings for the finger joints manually but adding everything else would have bloated both the code and the UI .

To solve this the new parameters are now created automatically from the Settings classes. The use of argparse argument_groups allows structuring them nicely. Improvements to the UI keep even generators like Box2 - which now has nearly as many knobs as an 747 cockpit - reasonable tidy by collapsing the settings of each edge type to just one line.

Discussions