mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-26 15:34:57 +01:00
update example
This commit is contained in:
parent
c44e3ecb40
commit
b7a630b576
@ -1,14 +1,13 @@
|
||||
import THREE from 'three.js';
|
||||
import * as SLICER from 'src/index';
|
||||
|
||||
var settings = new SLICER.Settings();
|
||||
const settings = new SLICER.Settings();
|
||||
settings.updateConfig(SLICER.printerSettings['ultimaker2go']);
|
||||
settings.updateConfig(SLICER.userSettings);
|
||||
|
||||
var geometry = new THREE.TorusGeometry(20, 10, 30, 30);
|
||||
const geometry = new THREE.TorusGeometry(20, 10, 30, 30);
|
||||
|
||||
var slicer = new SLICER.Slicer();
|
||||
//var slicer = new SLICER.SlicerWorker();
|
||||
const slicer = new SLICER.Slicer();
|
||||
|
||||
slicer.setGeometry(geometry.clone());
|
||||
slicer.addEventListener('finish', ({ gcode }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user