Go to file
casperlamboo b8d567aabe remove spaces
comply with linter
2016-07-19 14:28:03 +02:00
example update config handling 2016-07-19 14:23:23 +02:00
src remove spaces 2016-07-19 14:28:03 +02:00
.gitignore updated to three.js r72 2015-10-14 17:11:29 +02:00
jspm.config.js update to jspm 0.17 2016-07-18 18:28:47 +02:00
package.json update to jspm 0.17 2016-07-18 18:28:47 +02:00
README.md Update README.md 2015-07-26 15:38:48 +02:00

Doodle3D-Slicer

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

Usage

import THREE from 'three.js';
import PRINTER_SETTINGS from 'settings/printer_settings.json!';
import USER_SETTINGS from 'settings/user_settings.json!';
import * as SLICER from 'Doodle3D/Doodle3d-Slicer';

var settings = new SLICER.Settings();
settings.updateConfig(PRINTER_SETTINGS['ultimaker2go']);
settings.updateConfig(USER_SETTINGS);

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

var slicer = new SLICER.Slicer();

slicer.setGeometry(geometry);
slicer.onfinish = function (gCode) {
	document.write(gCode.replace(/(?:\r\n|\r|\n)/g, '<br />'));
};
slicer.slice(settings);