question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GCODELoader contains wrong travel visualization

See original GitHub issue

When using the GCODELoader, the travel moves of the gcode are not shown correctly. When opening the same GCODE in another program like Repetier or Cura, the travel moves are shown differently than when using the GCODELoader of ThreeJS.

Live example It can also be seen in the example on the ThreeJS website, for example if you zoom in on the travel moves between the 3 skirt lines. The travel moves are always shown a line too late.

To fix To fix this issue, change line 155 from line.extruding = delta( state.e, line.e ) > 0; to state.extruding = delta( state.e, line.e ) > 0;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrdoobcommented, Sep 1, 2021

Thanks!

Before After
Screen Shot 2021-09-01 at 6 57 46 PM Screen Shot 2021-09-01 at 6 57 29 PM
1reaction
mrdoobcommented, Sep 1, 2021

I’ll apply the fix directly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simulation of Arduino Based CNC -- Arduino+ GRBL+ Proteus 8
Simulation of Arduino based CNC by Proteus 8 and GRBL firmware. In this instructable I want to show how to Simulate Arduino, stepper...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found