draws a gcode file in 3d, centered on the grid. green is extrusion, blue is travel, red is retraction.
written in C with raylib. the gcode parser is my own.
needs raylib and cmake.
brew install raylib
cmake -B build && cmake --build build./build/gcodeviewer sample.gcodehold left mouse to rotate, scroll to zoom.
only reads G0 and G1. relative XYZ is not supported — G91 only switches the
extruder to relative, X, Y and Z are always absolute. no arcs, no G92. the whole
file is drawn at once, there is no layer view.
do whatever you want with it. see LICENSE (the Unlicense).
