mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-29 17:04:57 +01:00
make example non-blocking
This commit is contained in:
parent
9c9fbf4f01
commit
12c18df053
@ -11,6 +11,6 @@ const geometry = new THREE.TorusGeometry(20, 10, 30, 30);
|
||||
const slicer = new SLICER.Slicer();
|
||||
|
||||
slicer.setGeometry(geometry);
|
||||
slicer.slice(settings, false).then(gcode => {
|
||||
slicer.slice(settings, true).then(gcode => {
|
||||
document.getElementById('gcode').innerHTML = gcode.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user