Merge branch 'develop'

This commit is contained in:
casperlamboo 2017-09-13 13:57:46 +02:00
commit c9536d857a
5 changed files with 15 additions and 16 deletions

16
package-lock.json generated
View File

@ -1,21 +1,21 @@
{
"name": "@doodle3d/doodle3d-slicer",
"version": "0.0.4",
"version": "0.0.12",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@doodle3d/clipper-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@doodle3d/clipper-js/-/clipper-js-1.0.3.tgz",
"integrity": "sha512-CM0g8ALJJoTaYh6WWwQVt1ak85vvDd1YvmAFzJ1Qe8l5q84+Bbq2XYUNVCnJ5D3FJgyKDx7TOmOTe4XySClycg==",
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/@doodle3d/clipper-js/-/clipper-js-1.0.7.tgz",
"integrity": "sha512-8Ji8rrFWZ7LAEpIp1SQZJgewxt0FUBFeDku+ZRIR5PS0Jc6Abbq5KykQLVh1zOh3oqX2Cgl+myhqMhFeZXqutA==",
"requires": {
"@doodle3d/clipper-lib": "6.2.2"
"@doodle3d/clipper-lib": "6.4.2-b"
}
},
"@doodle3d/clipper-lib": {
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/@doodle3d/clipper-lib/-/clipper-lib-6.2.2.tgz",
"integrity": "sha512-RLwCRi98bX4P3QcbznEFL9tLAXX32ychi+JIeS6S0BmPMvI0uSEw+IpbmihR44bqY+SxkQigs9Gcz7hMiZS2zA=="
"version": "6.4.2-b",
"resolved": "https://registry.npmjs.org/@doodle3d/clipper-lib/-/clipper-lib-6.4.2-b.tgz",
"integrity": "sha512-glELSijsD9b+/0d9iOdasBwqH3s+xPxD59tJ7aXkBx7klugygGOMXn7PB05AdhVyA1OYMj7GUCegaQa7nvLtmQ=="
},
"ansi-regex": {
"version": "2.1.1",

View File

@ -1,6 +1,6 @@
{
"name": "@doodle3d/doodle3d-slicer",
"version": "0.0.4",
"version": "0.0.12",
"description": "JavaScript gcode slicer, Intended to use with the Doodle3D WiFi-Box # Usage",
"main": "lib/index.js",
"module": "module/index.js",
@ -14,7 +14,7 @@
"build:module:settings": "cp -r src/settings module"
},
"dependencies": {
"@doodle3d/clipper-js": "^1.0.3",
"@doodle3d/clipper-js": "^1.0.7",
"three": "^0.83.0"
},
"devDependencies": {

View File

@ -20,11 +20,8 @@ export default function shapesToSlices(shapes, settings) {
lineShapesClosed = new Shape(lineShapesClosed, true, true, true, true)
.clean(cleanDelta);
lineShapesOpen = new Shape(lineShapesOpen, false, true, true, true);
// .clean(cleanDelta);
// TODO
// Cleaning is actually wanted here but there is a bug in the clean function
// https://sourceforge.net/p/jsclipper/tickets/16/
lineShapesOpen = new Shape(lineShapesOpen, false, true, true, true)
.clean(cleanDelta);
const slice = new Slice();

View File

@ -50,9 +50,10 @@ export default function slicesToGCode(slices, settings) {
for (let i = 0; i < slice.parts.length; i ++) {
const part = slice.parts[i];
const outline = part.shell[0];
if (part.closed) {
const outline = part.shell[0];
for (let i = 0; i < part.shell.length; i ++) {
const shell = part.shell[i];
const isOuterShell = i === 0;

View File

@ -1,3 +1,4 @@
import 'core-js'; // polyfills
import slice from './sliceActions/slice.js';
import * as THREE from 'three';