chilipeppr / widget-3dviewer

The amazing 3D viewer that is the centerpiece of ChiliPeppr. It knows how to parse Gcode to show it as a 3D representation. Has a simulator built in for the tool path. Also has numerous pubsub signals defined to enable 3rd party tools to inject 3D objects into the viewer.
16 stars 41 forks source link

Misinterpreted G2/G3 direction for arcs in ZX plane #16

Open jooher opened 6 years ago

jooher commented 6 years ago

Arcs from .gcode seem to render with wrong clockwise direction for arcs ZX plane. Preview shows lots of weird circles instead of neat arcs, while tool tracking from G2 board (DUE) goes correctly. If G2 and G3 are swapped for ZX plane (by tweaks in tinyg.cps post) - the preview shows correct picture, BUT the weird circles appear in tool tracking. In other words: G2/G3 interpretation of 3dviewer (GCodeParser object?) is different from tinyg for arcs in ZX plane.