Go to file
casperlamboo 622be82706 Merge remote-tracking branch 'origin/feature/split-settings' into develop
# Conflicts:
#	example/save.js
#	example/viewer.js
#	jspm.config.js
#	package.json
#	src/GCode.js
#	src/Slicer.js
#	src/index.js
#	src/sliceActions/addBrim.js
#	src/sliceActions/calculateLayersIntersections.js
#	src/sliceActions/createLines.js
#	src/sliceActions/detectOpenClosed.js
#	src/sliceActions/generateInfills.js
#	src/sliceActions/generateInnerLines.js
#	src/sliceActions/generateSupport.js
#	src/sliceActions/intersectionsToShapes.js
#	src/sliceActions/removePrecision.js
#	src/sliceActions/slice.js
2017-07-18 11:26:11 +02:00
example Merge remote-tracking branch 'origin/feature/split-settings' into develop 2017-07-18 11:26:11 +02:00
src Merge remote-tracking branch 'origin/feature/split-settings' into develop 2017-07-18 11:26:11 +02:00
.gitignore add jspm dependency 2016-08-19 14:05:30 +02:00
jspm.config.js Merge remote-tracking branch 'origin/feature/split-settings' into develop 2017-07-18 11:26:11 +02:00
package.json Merge remote-tracking branch 'origin/feature/split-settings' into develop 2017-07-18 11:26:11 +02:00
README.md replace tabs with spaces 2017-05-13 14:48:48 +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 />');
});