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