gcode2obj 0.3.0

[Wavefront obj] Visualization tool for inspecting a g-code file.
gcode2obj-0.3.0 is not a library.

gcodeToObj

Rust 2021 Edition.

A G-code visualization tool written in rust

A nom based parser, outputs a "Wavefront Obj" file which can be imported into blender for visualization.

Both .gcode files and binary .bgcode files are accepeted

How to use

Pass the gcode file in as 'StdIn' and the program will send the obj file to 'StdOut' :-

cargo run --release -- < ../assets/bency.gcode > benchy.obj

Binary ".bgcode" files must be passed in by filename :-

## Binary bgcoode files must be passed in as an argument beacuse they are not utf-8 encoded
cargo run --release --  ../assets/both\ parts.bgcode > both.obj

Here the obj files are imported in to blender and processed.

Benchy in Blender Lego bricks

Within blender :-

  1. This obj has been "Imported".
  2. Converted into a "Curve".
  3. Finally a circular bevel object has been applied to make the object solid [ A circle to represent a 0.1mm fibre].

see todo

Future work

  • I have only tested against gcode files that use absolute positioning. I must test will relative positioning.