diff --git a/simpleExample/index.js b/simpleExample/index.js index 282237a..43f9cd1 100644 --- a/simpleExample/index.js +++ b/simpleExample/index.js @@ -9,6 +9,7 @@ const settings = { }; const geometry = new THREE.TorusGeometry(20, 10, 30, 30).clone(); +geometry.mergeVertices(); const onProgress = ({ progress: { done, total, action } }) => { const percentage = `${(done / total * 100).toFixed()}%` @@ -17,4 +18,4 @@ const onProgress = ({ progress: { done, total, action } }) => { sliceGeometry(settings, geometry, null, false, onProgress).then(gcode => { document.body.innerHTML = gcode.replace(/(?:\r\n|\r|\n)/g, '
'); -}); \ No newline at end of file +});