mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 03:23:48 +01:00
merge vertices of example
This commit is contained in:
parent
138a1faa7e
commit
a19ffbffab
@ -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 />');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user