Skip to content
SchojiPublic

About

GCodeC - a tiny 3D G-code viewer written in C

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcode viewer

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.

build

needs raylib and cmake.

brew install raylib
cmake -B build && cmake --build build

run

./build/gcodeviewer sample.gcode

hold left mouse to rotate, scroll to zoom.

limitations

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.

license

do whatever you want with it. see LICENSE (the Unlicense).

About

GCodeC - a tiny 3D G-code viewer written in C

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages