mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
update example
This commit is contained in:
parent
5b9931531b
commit
481de15e75
@ -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