merge vertices of example

This commit is contained in:
casperlamboo 2017-07-28 10:48:46 +02:00
parent 138a1faa7e
commit a19ffbffab

View File

@ -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, '<br />');
});
});