mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 03:23:48 +01:00
Fixed code in readme
This commit is contained in:
parent
94c21360b2
commit
7a111371e9
@ -3,15 +3,15 @@ JavaScript gcode slicer, Intended to use with the Doodle3D WiFi-Box
|
||||
# Usage
|
||||
|
||||
```javascript
|
||||
import THREE from 'three.js';
|
||||
import 'three.js';
|
||||
import * as SLICER from 'doodle3d-slicer';
|
||||
|
||||
const settings = new SLICER.Settings({
|
||||
...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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user