mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 13:37:58 +01:00
remove clone function in example
This commit is contained in:
parent
08adf33139
commit
74e0a5d0ef
@ -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