gCodeViewer icon indicating copy to clipboard operation
gCodeViewer copied to clipboard

ModelInfo produces many NaN's

Open rkblackfire opened this issue 8 years ago • 0 comments

I think it is related to my Slicer (modified skeinforge by myriwell), because noone else reported such problems:

In every .gcode file ''all'' individual layer information are calculated ok (plausible values). But in Model Info most values are shown as NaN (not summed up correctly).

I ''fixed it'' (only better error handling - not really investigated the reason) with: .in Worker.js ..line 162: ...- totalFilament+=cmds[j].extrusion; ...+ if(cmds[j].extrusion > 0) totalFilament+=cmds[j].extrusion; ..line 181: ...- printTime += printTimeAdd; ...+ if (printTimeAdd > 0) printTime += printTimeAdd;

Example .gcode can be found at: [http://pastebin.com/AbGFDyTM]

Thumbs Up! to the Project after all.

Sincerely, Richard.

rkblackfire avatar Aug 11 '16 14:08 rkblackfire