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

Fix deprecation notices #7

Open dchote opened 7 years ago

dchote commented 7 years ago

Rather than branch/revert/patch/pull request... ill just submit a ticket.

THREE.LinePieces has been deprecated.

var line = new THREE.Line(lineGeo, material, THREE.LinePieces);

becomes

var line = new THREE.LineSegments(lineGeo, material);

You can cherry pick from this commit: https://github.com/dchote/widget-3dviewer-rpi/commit/18e6b4f8e8ab43ecc23e52f5cf7c2aaa1ff00e0e