Go to file
2016-08-27 09:55:59 +02:00
example splice slice sync and slice async 2016-08-19 15:12:20 +02:00
src added map to lower argument 2016-08-27 09:55:59 +02:00
.gitignore add jspm dependency 2016-08-19 14:05:30 +02:00
jspm.config.js update config 2016-08-26 21:43:46 +02:00
package.json update config 2016-08-26 21:43:46 +02:00
README.md update read me 2016-08-19 14:47:15 +02:00

Doodle3D-Slicer

JavaScript gcode slicer, Intended to use with the Doodle3D WiFi-Box

Usage

import THREE from 'three.js';
import * as SLICER from 'doodle3d-slicer';

const settings = new SLICER.Settings({
	...SLICER.printerSettings['ultimaker2go'],
	...SLICER.userSettings
});

const geometry = new THREE.TorusGeometry(20, 10, 30, 30);

const slicer = new SLICER.Slicer();

slicer.setGeometry(geometry);
slicer.slice(settings, false).then(gcode => {
	document.getElementById('gcode').innerHTML = gcode.replace(/(?:\r\n|\r|\n)/g, '<br />');
});