Commit Graph

569 Commits

Author SHA1 Message Date
casperlamboo
95ba0cfeb1 change rorate code 2017-12-05 11:10:17 +01:00
casperlamboo
84e28bc598 add on cancel 2017-12-04 19:31:15 +01:00
casperlamboo
31073e7122 remove unused code 2017-12-04 19:31:09 +01:00
casperlamboo
3dfce6a610 add title 2017-12-04 17:51:56 +01:00
casperlamboo
a79dd30abc update copy 2017-12-04 17:45:28 +01:00
casperlamboo
9d14e40c21 update tabs 2017-12-04 17:44:08 +01:00
casperlamboo
65d44db405 Make changes to UI 2017-12-04 15:08:29 +01:00
casperlamboo
bc9f0e673e add info to all printers
we should really add info like dimensions to all printers
2017-11-17 00:07:50 +01:00
casperlamboo
ed8ccd3f68 more flexibele code 2017-11-16 23:54:05 +01:00
casperlamboo
8c546e31b3 fix z offset 2017-11-16 23:32:50 +01:00
casperlamboo
8e5e000a12 semi z offset
isn’t real fix
2017-11-16 23:30:53 +01:00
casperlamboo
994a1caa98 update settings 2017-11-16 23:24:30 +01:00
casperlamboo
b47e98c005 add font family 2017-11-16 22:51:29 +01:00
casperlamboo
2aa72566db remove primary 2017-11-16 22:42:11 +01:00
casperlamboo
2c2bbeda53 add z offset 2017-11-16 22:39:54 +01:00
casperlamboo
5bc7d09e8d add super() 2017-11-16 15:06:19 +01:00
casperlamboo
e33c967934 fix props 2017-11-16 15:05:28 +01:00
casperlamboo
5f1a7e3e74 simplify calculating center 2017-11-16 14:54:55 +01:00
casperlamboo
72c7c91b27 mov static functions 2017-11-16 14:54:47 +01:00
casperlamboo
aef67db205 remove height offseting 2017-11-16 14:54:33 +01:00
casperlamboo
b9b1f59af2 update displaying progress 2017-11-14 11:22:24 +01:00
casperlamboo
22298c9cb6 remove canvas width height updating 2017-11-14 11:21:58 +01:00
casperlamboo
1f7b48662a rename var printer to printers 2017-11-13 15:47:19 +01:00
casperlamboo
3221278853 rename var 2017-11-13 15:41:11 +01:00
casperlamboo
aa339fda3a fix last commit 2017-11-13 15:32:23 +01:00
casperlamboo
6e43994305 pass more data 2017-11-13 15:12:59 +01:00
casperlamboo
9f7242e0e4 change padding 2017-11-13 13:37:36 +01:00
casperlamboo
9e28b3b317 enable backface culling 2017-11-13 13:32:06 +01:00
casperlamboo
597ec406de set antialiasing to true 2017-11-13 12:50:45 +01:00
casperlamboo
23087af9fc hack to disable control 2017-11-13 12:44:03 +01:00
casperlamboo
8e985669ed better resize handling 2017-11-13 12:42:35 +01:00
casperlamboo
81d842cc8c move default props 2017-11-13 11:26:52 +01:00
casperlamboo
fcfe7f7bc6 update size when props change 2017-11-13 11:15:00 +01:00
casperlamboo
10055824aa space buttons 2017-11-13 11:01:57 +01:00
casperlamboo
83d96d88ec move on change to context 2017-11-13 10:45:23 +01:00
casperlamboo
45e0f02936 typo 2017-11-13 10:43:42 +01:00
casperlamboo
cd737da6d9 make settings passable 2017-11-13 10:40:58 +01:00
casperlamboo
6bdcb6cb23 also pass settings to callback 2017-11-13 03:05:06 +01:00
casperlamboo
057fd4e094 styles 2017-11-13 03:04:53 +01:00
casperlamboo
dcd3dc1614 settings now work 2017-11-13 02:47:53 +01:00
casperlamboo
6cd899f32b make settings editable 2017-11-13 02:09:39 +01:00
casperlamboo
c1117a8ce5 move static outside class 2017-11-12 19:12:32 +01:00
casperlamboo
88e056aece add basic settings drop downs 2017-11-12 18:41:00 +01:00
casperlamboo
dc6c1d7575 replace with material ui 2017-11-12 16:58:59 +01:00
casperlamboo
9c233b1ab6 don't convert geometry 2017-11-12 13:50:49 +01:00
casperlamboo
3a09b93f46 set enabled of control
doesn’t do anything
2017-11-12 12:58:19 +01:00
casperlamboo
16158a3e3c add slice logging 2017-11-12 12:34:50 +01:00
casperlamboo
245e1b705a construct geometry in worker 2017-11-12 11:53:45 +01:00
casperlamboo
b6f94f6edb add draw range slider 2017-11-12 11:28:32 +01:00
casperlamboo
a5547ac070 simplify place on ground 2017-11-12 01:51:41 +01:00
casperlamboo
2c2b547ea2 focus camera 2017-11-12 01:51:33 +01:00
casperlamboo
40d505d754 use printer from state 2017-11-12 01:41:05 +01:00
casperlamboo
ccc676ebd1 add download code 2017-11-12 01:15:38 +01:00
casperlamboo
3b4df148ed add slice again button 2017-11-12 01:04:26 +01:00
casperlamboo
849f3f893a move line preview to slice 2017-11-12 00:57:28 +01:00
casperlamboo
4654858c3e hide buttons bar when sliced 2017-11-12 00:47:06 +01:00
casperlamboo
624a178bb2 fix setting dimensions 2017-11-12 00:46:39 +01:00
casperlamboo
2b783e2889 beter type checking 2017-11-12 00:46:30 +01:00
casperlamboo
bacca4099c add comment 2017-11-12 00:46:12 +01:00
casperlamboo
c30bd0440e position geometry 2017-11-12 00:46:00 +01:00
casperlamboo
cd0406f0a9 add code preview 2017-11-12 00:11:05 +01:00
casperlamboo
ae24974e31 create basic component 2017-11-11 20:23:45 +01:00
casperlamboo
3f3408747c Merge branch 'develop'
# Conflicts:
#	src/settings/printer.yml
2017-10-17 12:07:52 +02:00
Rick Companje
dcfd1bf318 added ultimaker2+ and wanhao_duplicator_i3+ 2017-10-17 11:47:55 +02:00
casperlamboo
574072c1bd temporarily disable cleaning on open lines 2017-10-05 14:19:57 +02:00
casperlamboo
abde14fb4a set correct dimensions of ultimaker2 2017-09-19 14:18:51 +02:00
casperlamboo
8ea613e36e Always clean with clean delta 1
Making constant clean delta obsolete because it is already implied by
the const precision
2017-09-14 23:27:07 +02:00
casperlamboo
935e4eca98 Fix error in slices to gcode 2017-09-13 13:56:19 +02:00
casperlamboo
f857a2f76f add clean to open shapes
Is now possible because of updated clipper-lib
2017-09-13 11:43:51 +02:00
Peter Uithoven
d3038d87d7 Adding polyfills 2017-09-07 12:55:56 +02:00
casperlamboo
740d9d53ca fix combing 2017-08-25 15:35:38 +02:00
casperlamboo
cb61566c08 update comb code 2017-08-24 10:55:36 +02:00
casperlamboo
1afbe54dc7 update combing 2017-08-17 16:13:21 +02:00
casperlamboo
65472890eb basic implementation of comb 2017-08-11 18:54:04 +02:00
casperlamboo
4ededa4dfe add duration and filament usage 2017-08-03 00:17:34 +02:00
casperlamboo
9363fe58af actually edit parts array 2017-08-01 14:24:15 +02:00
casperlamboo
b566a387c6 remove parts that don't contain shells 2017-08-01 13:58:44 +02:00
casperlamboo
ab4427e818 differentiate between open lines and closed lines for non filled paths 2017-07-28 15:02:24 +02:00
casperlamboo
53bd335d7f fix settings 2017-07-28 12:17:40 +02:00
casperlamboo
72db7105fb combine interlines and outline into shell 2017-07-28 12:13:53 +02:00
casperlamboo
d380db1d7a remove log 2017-07-28 11:21:51 +02:00
casperlamboo
39f29eb489 separate inner fill and outer fill 2017-07-28 11:05:48 +02:00
casperlamboo
9805991d9f use new settings
#25
2017-07-27 18:33:25 +02:00
casperlamboo
bcf62c71ec remove settings from gcode class 2017-07-27 18:20:08 +02:00
casperlamboo
34f6a91db9 remove unnecessary check 2017-07-27 14:48:15 +02:00
casperlamboo
bcfbe99579 remove overlap setting 2017-07-27 12:42:14 +02:00
casperlamboo
ccc88bdb77 pre calculate bounding boxes 2017-07-27 10:35:30 +02:00
casperlamboo
4304f7373d add comment
@peteruithoven I was wrong about the less then :(
2017-07-25 14:36:26 +02:00
casperlamboo
2304560a13 Revert "Fix generate inner lines"
This reverts commit b62e3b5cb8.
2017-07-25 14:34:12 +02:00
casperlamboo
b62e3b5cb8 Fix generate inner lines
Use correct number of shells
2017-07-25 14:19:26 +02:00
peteruithoven
b366861326 Merge branch 'babel' into develop 2017-07-24 15:52:27 +02:00
casperlamboo
0ad8de8c80 simplify code 2017-07-24 15:45:18 +02:00
casperlamboo
4a61164af9 Terminate web worker on error 2017-07-24 15:40:54 +02:00
casperlamboo
cb465b9eee Throw error when provided mesh is empty
@peteruithoven
2017-07-24 15:40:39 +02:00
casperlamboo
8b475d8e4b typo 2017-07-24 13:01:22 +02:00
peteruithoven
0f4434330b Lowercasing slicer.js 2017-07-20 16:25:02 +02:00
peteruithoven
541d205a2f Merge branch 'develop' into babel 2017-07-20 16:24:14 +02:00
peteruithoven
fa1ae069bf Removing jspm specific loader specification 2017-07-20 11:54:49 +02:00
peteruithoven
f330aad040 Clipper-js dependency 2017-07-20 11:51:48 +02:00
peteruithoven
02b1f080fb Assumming package user configured loaders 2017-07-20 11:34:47 +02:00
casperlamboo
30645f634a Updated API
@peteruithoven @mith

I think this is a somewhat nicer API for the slicer. I completely
removed the Slicer class and instead added two function: sliceGeometry
and sliceMesh
2017-07-20 10:29:33 +02:00
casperlamboo
0564f3e7bc fix onProgress handling in slice function 2017-07-20 00:06:19 +02:00
casperlamboo
a79308dc8f better error handling 2017-07-20 00:05:50 +02:00
casperlamboo
d7a525f75b camel casing 2017-07-19 20:54:39 +02:00
casperlamboo
e4880106f1 remove progress promise
@mith @peteruithoven
2017-07-19 20:54:21 +02:00
casperlamboo
c390cc335a increase total stages because step is added 2017-07-19 17:37:40 +02:00
casperlamboo
8c57e16998 cleanup Slicer 2017-07-19 17:36:20 +02:00
casperlamboo
3f140d7f03 don't catch result of void detectOpenClosed function 2017-07-19 17:36:03 +02:00
casperlamboo
8e45881a45 pre calculate outer lines 2017-07-19 17:33:55 +02:00
casperlamboo
44197dd5e4 remove unnecessary new key word 2017-07-19 11:50:23 +02:00
casperlamboo
fdbb1469ee format settings deconstructing 2017-07-19 11:04:13 +02:00
casperlamboo
3b4dbc0d4a fix settings deconstructing 2017-07-19 11:03:16 +02:00
casperlamboo
1e16c741a0 move helper classes to helper folder 2017-07-19 11:02:42 +02:00
casperlamboo
73f0433e00 wrap progress in object
So data could be extended in the future
2017-07-19 11:02:14 +02:00
casperlamboo
83f543b62b fix isFlat check 2017-07-18 16:55:27 +02:00
casperlamboo
1d2a9ba965 use npm version of three.js 2017-07-18 12:38:03 +02:00
casperlamboo
0a041ddae0 update progress api 2017-07-18 12:26:30 +02:00
casperlamboo
4a238f9089 remove settings class 2017-07-18 11:39:38 +02:00
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
casperlamboo
94181d6660 update save example 2017-07-18 10:34:20 +02:00
casperlamboo
0f579b8055 update detect open closed shapes logic 2017-07-18 10:23:16 +02:00
casperlamboo
8b9b789c56 remove unused three js imports 2017-07-17 16:18:44 +02:00
casperlamboo
87f7f2f906 Fix geometry type check
#21
2017-07-17 15:22:13 +02:00
Rick Companje
f3c0960512 set default top thickness to 1.2 2017-07-13 18:12:45 +02:00
Rick Companje
a216ee0e94 fixed typo 'high' and added fill.gridSize:0.15 2017-07-13 17:56:57 +02:00
Rick Companje
cd3c2d8cb4 fixed typo in title of Renkforce RF100 printer 2017-07-13 15:59:07 +02:00
Rick Companje
f374139238 added custom dimensions for Renkforce printer 2017-07-12 12:54:20 +02:00
Rick Companje
8cf264b437 renamed 'title' of 'Ultimaker' to 'Ultimaker Original' 2017-07-12 10:45:20 +02:00
Simon Voordouw
cff8dfffc0 map old config names to new split settings 2017-07-11 17:19:05 +02:00
Simon Voordouw
f87a9c0a56 don't export settings object 2017-07-11 13:49:21 +02:00
Simon Voordouw
d47c8ca07b replace default settings in json with split yml files 2017-07-10 16:07:38 +02:00
Simon Voordouw
dc99f417da add progress reporting 2017-07-04 14:19:07 +02:00
Simon Voordouw
1f206e5784 remove erronous bracket 2017-06-22 14:06:26 +02:00
Simon Voordouw
3f998bd604 add low, medium and high quality setting profiles 2017-06-22 13:43:45 +02:00
casperlamboo
5fda1b3729 make variables private in GCode.js 2017-06-22 13:22:17 +02:00
casperlamboo
2284eb16fb clean up 2017-06-22 13:22:17 +02:00
casperlamboo
3e52a11a9b typo 2017-06-22 13:22:17 +02:00
casperlamboo
55b63ac8ad properly check for undefined 2017-06-22 13:22:17 +02:00
casperlamboo
b4b6e59807 update add brim code 2017-06-22 13:22:17 +02:00
casperlamboo
4825222b09 use includes instead of indexOf 2017-06-22 13:22:17 +02:00
casperlamboo
1fa98ae6de move merge vertices and compute normals to slice actions 2017-06-22 13:22:17 +02:00
casperlamboo
8b3a33eb86 Better detection of open closed shapes
when a ‘single walled’,  ‘closed’ shape is sliced the shape will appear
to be closed by the slicer. This happens because the start and endpoint
of the 2d shape are connected. This commits fixes this.

In the new approach al parts of the geometry are split up into shapes.
Then the 3d shapes are places into two categories (closed and open
geometries).

Based on weather the 3d geometry is open or closed the 2d shape will be
open or closed

@mith @peteruithoven
2017-06-22 13:22:17 +02:00
casperlamboo
4fb2caee53 re enable applying and removing precision for open shapes 2017-06-22 13:22:17 +02:00
casperlamboo
f0b23647bb fix setting replace code 2017-06-22 13:22:17 +02:00
casperlamboo
922111c3e3 Don't scale up or scale down open shapes 2017-06-22 13:22:17 +02:00
casperlamboo
04a66da688 always start first layer on Z0.2 2017-06-22 13:22:17 +02:00
casperlamboo
ca7c02c0d7 Don't clean open shapes 2017-06-22 13:22:17 +02:00
casperlamboo
ba2467b923 store calculation in const 2017-06-22 13:22:17 +02:00
casperlamboo
a14cf8448d remove unused variable 2017-06-22 13:22:17 +02:00
casperlamboo
e1336581dc simplify getOutline function 2017-06-22 13:22:17 +02:00