Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Sep 13, 2017
2 parents 24a100f + 3422b12 commit c9536d8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand Down
7 changes: 2 additions & 5 deletions src/sliceActions/shapesToSlices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
3 changes: 2 additions & 1 deletion src/sliceActions/slicesToGCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/slicer.worker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'core-js'; // polyfills
import slice from './sliceActions/slice.js';
import * as THREE from 'three';

Expand Down

0 comments on commit c9536d8

Please sign in to comment.