Yet Another Gcode Viewer by jonathanw 3d model
3dmdb logo
Thingiverse
Yet Another Gcode Viewer by jonathanw

Yet Another Gcode Viewer by jonathanw

by Thingiverse
Last crawled date: 2 years, 12 months ago
yagv - Yet Another Gcode Viewer
This is a fast 3D Gcode Viewer for Reprap-style 3D printers, in Python and OpenGL (via pyglet)
It was written since I could not find a visualizer that fitted my needs, i.e:
Load large files painlessly
Let me choose the layer to display
Color segments according to function
Show a full 3D view for better undertanding of the code.
Designed in Ubuntu Linux; Expected to work in any Linux, Windows or OS X
Full code at https://github.com/jonathanwin/yagv and attached
Requires:
python 2.x (2.7.3 tested)http://python.org/
pyglet 1.1+ (1.1.4 tested)http://www.pyglet.org
Usage:
yagv [file.gcode]
By default, open data/hana_swimsuit_fv_solid_v1.gcode if no file specified
Features:
Colors segments according to their type:
extruding
flying the head to the next extrusion point
retracting filament
restoring filament

Allows displaying layers independently to examine them.
Automagically splits the gcode into layers.
Automatic scaling to fit the window.
Zoom and rotation (Panning planned).
Issues:
Panning for close inspection not yet supported.
Retract/restore detected but invisible (0-length segments).
Designed with Slic3r output in mind, may not support other slicing programs (suggestions/patches welcome).
Some gcodes unsupported:
G91: Set to Relative Positioning (used by some slicers)
G20: Set Units to Inches (usage unknown)
Arcs (G2 & G3 ?)

Supplied demo gcode is a slice of http://www.thingiverse.com/thing:5176 (loaded if called with no file)
Since I started this, hudbrog published his very nice GCode Analyzer/Visualizer; check it out: http://www.thingiverse.com/thing:35248

Tags