Fixed code in readme

This commit is contained in:
peteruithoven 2017-07-07 18:11:37 +02:00
parent 94c21360b2
commit 7a111371e9

View File

@ -3,15 +3,15 @@ JavaScript gcode slicer, Intended to use with the Doodle3D WiFi-Box
# Usage # Usage
```javascript ```javascript
import THREE from 'three.js'; import 'three.js';
import * as SLICER from 'doodle3d-slicer'; import * as SLICER from 'doodle3d-slicer';
const settings = new SLICER.Settings({ const settings = new SLICER.Settings({
...SLICER.printerSettings['ultimaker2go'], ...SLICER.printerSettings['ultimaker2go'],
...SLICER.userSettings ...SLICER.userSettings.low
}); });
const geometry = new THREE.TorusGeometry(20, 10, 30, 30); const geometry = new THREE.TorusGeometry(20, 10, 30, 30).clone();
const slicer = new SLICER.Slicer(); const slicer = new SLICER.Slicer();