|
|
@ -4,10 +4,12 @@ The hacked together pipeline is as follows given an svg `$SVG`. You may use the
|
|
|
|
|
|
|
|
|
|
|
|
1. Ensure that your SVG has a size set that fits in Ooza
|
|
|
|
1. Ensure that your SVG has a size set that fits in Ooza
|
|
|
|
1. One way to ensure is by setting width & height on the root `<svg>` element
|
|
|
|
1. One way to ensure is by setting width & height on the root `<svg>` element
|
|
|
|
2. Covert the SVG to gcode via `cargo run --release -- $SVG -o $OUTFILE`
|
|
|
|
1. Convert the SVG to gcode via `cargo run --release -- $SVG -o $OUTFILE`
|
|
|
|
3. Rewrite the gcode to center where the print happens via `python rewritegcode.py $OUTFILE $UPDATEFILE`
|
|
|
|
1. Rewrite the gcode to be compatible with Ooza via `python rewritegcode.py $OUTFILE $FINALFILE`. This will do a few things:
|
|
|
|
4. Generate the final file by concatenating the header to the updated file via `cat ooza/config.g $UPDATEFILE > $FINALEFILE`
|
|
|
|
1. Exit with an error message if the print would go outside the bounds of Ooza
|
|
|
|
5. Upload `$FINALFILE` to Jobs in Duet and run it
|
|
|
|
1. Rewrite the coordinates to center where the print happens
|
|
|
|
|
|
|
|
1. Prepend the header in `ooza/config.g` to the rewritten gcode
|
|
|
|
|
|
|
|
1. Upload `$FINALFILE` to Jobs in Duet and run it
|
|
|
|
|
|
|
|
|
|
|
|
# svg2gcode
|
|
|
|
# svg2gcode
|
|
|
|
|
|
|
|
|
|
|
|