mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 21:47:59 +01:00
remove clone function in example
This commit is contained in:
parent
0ec47b88e7
commit
b82380fff0
@ -9,7 +9,7 @@ const geometry = new THREE.TorusGeometry(20, 10, 30, 30);
|
|||||||
|
|
||||||
const slicer = new SLICER.Slicer();
|
const slicer = new SLICER.Slicer();
|
||||||
|
|
||||||
slicer.setGeometry(geometry.clone());
|
slicer.setGeometry(geometry);
|
||||||
slicer.addEventListener('finish', ({ gcode }) => {
|
slicer.addEventListener('finish', ({ gcode }) => {
|
||||||
document.getElementById('gcode').innerHTML = gcode.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
document.getElementById('gcode').innerHTML = gcode.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user