Commit Graph

399 Commits

Author SHA1 Message Date
casperlamboo
0670d54f4e fixed spelling errors 2017-06-22 13:21:07 +02:00
casperlamboo
f8d022226f added three js editor + slicer 2017-06-22 13:21:07 +02:00
casperlamboo
9aef506a4a changed format settings 2017-06-22 13:20:57 +02:00
casperlamboo
75d4d4758a Added slice abstraction to Slice class 2017-06-22 13:20:57 +02:00
casperlamboo
ccd650c533 improved index page
index page now checks if doodle boxes are alive before displaying them
2017-06-22 13:20:57 +02:00
casperlamboo
9723c2c237 improved network error handling
can now reconnect when connecting failed
2017-06-22 13:20:57 +02:00
casperlamboo
16d2468ced make variables private in GCode.js 2017-06-22 10:24:09 +02:00
casperlamboo
f4b9d565a7 clean up 2017-06-22 10:21:01 +02:00
casperlamboo
ef97f362e3 typo 2017-06-22 10:20:44 +02:00
casperlamboo
3d52fc9139 properly check for undefined 2017-06-22 10:19:15 +02:00
casperlamboo
68f1cd847d update add brim code 2017-05-26 17:35:30 +02:00
casperlamboo
8bf771b0f9 use includes instead of indexOf 2017-05-26 17:14:14 +02:00
casperlamboo
d92f6bb056 move merge vertices and compute normals to slice actions 2017-05-26 17:12:01 +02:00
casperlamboo
846ddcd97a 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-05-26 17:11:38 +02:00
casperlamboo
5f5b1254ad re enable applying and removing precision for open shapes 2017-05-26 16:56:05 +02:00
casperlamboo
07d059d456 fix setting replace code 2017-05-19 12:34:57 +02:00
casperlamboo
721b75b1f5 Don't scale up or scale down open shapes 2017-05-19 11:56:53 +02:00
casperlamboo
e88e8804d2 always start first layer on Z0.2 2017-05-19 11:43:47 +02:00
casperlamboo
a0aec2f4ad Don't clean open shapes 2017-05-19 10:51:34 +02:00
casperlamboo
0d3ac6525c store calculation in const 2017-05-19 10:49:26 +02:00
casperlamboo
93c9040170 remove unused variable 2017-05-19 10:49:10 +02:00
casperlamboo
c5a6f3cf14 simplify getOutline function 2017-05-16 10:44:48 +02:00
casperlamboo
c9cbd1fc49 Scale down open paths 2017-05-16 10:38:40 +02:00
casperlamboo
bb213547e2 increase clean delta 2017-05-15 16:01:51 +02:00
casperlamboo
183622e143 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	example/app.js
#	package.json
2017-05-13 15:41:46 +02:00
casperlamboo
1ec4f55c4b normalize cleanDelta with precision 2017-05-13 15:26:46 +02:00
casperlamboo
ff9ef8690a clean after simplify 2017-05-13 15:26:04 +02:00
casperlamboo
e6269bd581 fix construction of clipper paths 2017-05-13 15:25:58 +02:00
casperlamboo
229f194def replace tabs with spaces 2017-05-13 14:48:48 +02:00
Simon Voordouw
da8a54550a update dependencies and fix Three.js imports 2017-05-12 16:32:05 +02:00
casperlamboo
b7b2eff61b use simplify('pftNonZero') instead of deprecated removeOverlap function 2017-05-12 13:44:55 +02:00
casperlamboo
e9c2f653bf update three.js 2017-01-18 13:30:57 +01:00
casperlamboo
bbda9089d2 don't calculate 1 - alpha twice 2017-01-18 12:05:21 +01:00
casperlamboo
c34be4595a prettify 2016-10-13 14:24:53 +02:00
casperlamboo
fdff42b4a5 fix indenting 2016-10-13 14:24:12 +02:00
casperlamboo
83febd6aa0 remove enter 2016-10-13 14:22:54 +02:00
casperlamboo
45514218af rename sliceWorker to slicerWorker 2016-10-13 14:22:04 +02:00
casperlamboo
868748ee2c add all optional arguments in Shape constructor 2016-08-27 10:08:57 +02:00
casperlamboo
8d2ccc2c86 add break property to switch 2016-08-27 10:02:17 +02:00
casperlamboo
b8b13b2a6b use mapToLower to get path data 2016-08-27 10:01:50 +02:00
casperlamboo
bf2a9c512c added map to lower argument 2016-08-27 09:55:59 +02:00
casperlamboo
178e88f76b splice slice sync and slice async 2016-08-19 15:12:20 +02:00
casperlamboo
bf9d98611a implement async slicing 2016-08-19 14:46:02 +02:00
casperlamboo
ce1a0b760f reorganize folders and make Slicer.slice promise 2016-08-19 14:09:51 +02:00
casperlamboo
2ee97f9590 add capital to constructor functions 2/2 2016-08-19 13:50:41 +02:00
casperlamboo
4b5a49c829 add capital to constructor functions 1/2 2016-08-19 13:50:06 +02:00
casperlamboo
cbff9134f2 change settings 2016-07-19 14:45:17 +02:00
casperlamboo
5f2a3a6328 replace event dispatcher 2016-07-19 14:32:48 +02:00
casperlamboo
b8d567aabe remove spaces
comply with linter
2016-07-19 14:28:03 +02:00
casperlamboo
b6350871be instance check instead of type check 2016-07-19 14:26:06 +02:00
casperlamboo
782c61ecdb better error handling 2016-07-19 14:25:48 +02:00
casperlamboo
1b6a5966ca update config handling 2016-07-19 14:23:23 +02:00
casperlamboo
ab3b241fcb update to jspm 0.17 2016-07-18 18:28:47 +02:00
casperlamboo
08adf33139 remove line breaks 2016-05-09 11:41:21 +02:00
casperlamboo
47e5090444 remove line breaks 2016-05-09 11:40:54 +02:00
casperlamboo
0d4f6fbe5b remove line breaks 2016-05-09 11:17:49 +02:00
casperlamboo
5b9931531b include settings in lib 2016-05-08 11:09:34 +02:00
casperlamboo
ecce63f63c fix subsitute variables 2016-05-08 10:31:29 +02:00
casperlamboo
06c61a3cf6 move set settings to constructor 2016-05-08 10:31:00 +02:00
casperlamboo
d9fca74653 fix code 2016-05-08 10:26:47 +02:00
casperlamboo
5a46e138af use deconstion in code 2016-05-08 10:26:41 +02:00
casperlamboo
7517f522d0 use single quotes 2016-05-07 23:46:08 +02:00
casperlamboo
7360fc86bc use deconstruction 2016-05-07 23:45:58 +02:00
casperlamboo
0eb2a3994f use deconstruction in move 2016-05-07 23:31:06 +02:00
casperlamboo
caf62e58d5 remove worker 2016-05-07 23:06:56 +02:00
casperlamboo
8b9b1af612 update settings 2016-05-07 22:59:20 +02:00
casperlamboo
b65541ff54 remove slicer worker from index 2016-05-07 22:58:07 +02:00
casperlamboo
edeb24545e remove unused code 2016-05-07 22:45:36 +02:00
casperlamboo
5374a2d9c0 implement optimize paths 2016-05-07 22:33:15 +02:00
casperlamboo
0d1a9881db use destructure in add brim 2016-05-06 22:46:32 +02:00
casperlamboo
c8f97389ce add action log 2016-05-06 20:13:30 +02:00
casperlamboo
53d5d0a375 move file 2016-05-06 20:12:49 +02:00
casperlamboo
896eae7185 remove comment 2016-05-06 20:04:12 +02:00
casperlamboo
44e05bed28 remove line break 2016-05-06 20:03:15 +02:00
casperlamboo
5f5fac3180 remove constructor 2016-05-06 20:00:39 +02:00
casperlamboo
6c18b44827 remove update progress code
want to implement this in a different way
2016-05-06 19:59:49 +02:00
casperlamboo
1388bb2c44 move support enabled check 2016-05-06 19:58:39 +02:00
casperlamboo
065b43572d typo 2016-05-06 19:56:14 +02:00
casperlamboo
26ed8df38d fix action log 2016-05-06 19:56:08 +02:00
casperlamboo
457eaa1bef move scale up and scale down to separate function 2016-05-06 19:54:25 +02:00
casperlamboo
e16a5dda90 move brim code to separate function 2016-05-06 19:52:31 +02:00
casperlamboo
c8150c3bf7 use default dimensionsZ name 2016-05-06 19:49:07 +02:00
casperlamboo
9d828e3fda move down path to code 2016-05-06 19:48:41 +02:00
casperlamboo
bf0f504c34 comment optimize path code 2016-05-06 19:47:42 +02:00
casperlamboo
51412b5599 remove line break 2016-05-06 19:46:56 +02:00
casperlamboo
4237195b5e update create lines 2016-05-06 19:45:03 +02:00
casperlamboo
626867e554 cleanup calculate layers intersections 2016-04-23 09:56:47 +02:00
casperlamboo
7042ebf588 cleanup slicer 2016-04-23 09:56:36 +02:00
casperlamboo
b21db81f12 cleanup slice 2016-04-23 09:56:25 +02:00
casperlamboo
9e4109a3f8 cleanup slices to geode 2016-04-23 09:56:15 +02:00
casperlamboo
ebbe75ef2e implement constants 2016-04-23 00:24:01 +02:00
casperlamboo
9d17df0cf3 single quotes 2016-04-22 21:15:39 +02:00
casperlamboo
b9a2fdcc81 else on one line 2016-04-22 21:15:33 +02:00
casperlamboo
1cddce9e69 replace vars with const and let 2016-04-22 21:14:21 +02:00
casperlamboo
6891e09b54 fix infills 2016-04-22 19:38:06 +02:00
casperlamboo
fb691f175c replace var with const 2016-04-22 19:38:00 +02:00
casperlamboo
09bd688b88 fix get fill template 2016-04-22 19:37:34 +02:00
casperlamboo
00c94f5d67 fix join 2016-04-21 22:50:02 +02:00
casperlamboo
386a53849f remove unused imports 2016-04-21 22:22:59 +02:00
casperlamboo
4edb1985c8 rafacter 2016-04-21 22:14:22 +02:00
casperlamboo
2b10f388f7 simplified add gcode 2016-03-29 15:56:32 +02:00
casperlamboo
bd910a270c geplakt var with const or let in createLines 2016-03-29 09:53:48 +02:00
casperlamboo
bd511c3509 remove var for const or let in calculateLayerIntersections.js 2016-03-29 09:53:12 +02:00
casperlamboo
aa9de5ec47 use deconstructs 2016-03-29 08:49:35 +02:00
casperlamboo
e573a0662b move adeline to separate file 2016-03-29 08:15:30 +02:00
casperlamboo
3531d64dbf use s6 string 2016-03-29 08:01:07 +02:00
casperlamboo
ef74eebf8a implemented event dispatcher 2016-03-29 00:35:53 +02:00
casperlamboo
02e406f018 remove spaces 2016-03-29 00:27:06 +02:00
casperlamboo
3db03cd873 separate into actions into different files 2016-03-29 00:26:58 +02:00
casperlamboo
7ae57e0bda added detection for inside-out models 2015-10-16 14:28:10 +02:00
casperlamboo
0f6c73e93f updated to three.js r72 2015-10-14 17:11:29 +02:00
casperlamboo
fa38d8117e fixed clipper alert error 2015-08-26 18:27:56 +02:00
casperlamboo
aa71eb5b67 cloned outline
cloned outline so pointers get lost
2015-08-05 11:26:10 +02:00
casperlamboo
d3af71bc22 fixed https://github.com/Doodle3D/Doodle3D-Slicer/issues/12
fixed https://github.com/Doodle3D/Doodle3D-Slicer/issues/12
2015-08-04 09:54:02 +02:00
casperlamboo
1ac87e6f0c implemented better hole detection system 2015-08-03 12:09:46 +02:00
casperlamboo
0c557172e0 fixed bug in shell thickness 2015-07-30 14:31:55 +02:00
casperlamboo
0dd19d060a Fixed bug in constucting low/high fill areas 2015-07-30 11:36:20 +02:00
casperlamboo
2bc9d8fb35 fixed closed lines detected as open lines
fixed https://github.com/Doodle3D/Doodle3D-Slicer/issues/10
2015-07-29 20:59:34 +02:00
casperlamboo
d4f6776aa1 updated webworkers 2015-07-29 16:07:52 +02:00
casperlamboo
adafc44dc1 improved slicing algoritm 2015-07-29 11:18:18 +02:00
casperlamboo
bde4a8a907 fixed bug in open lines 2015-07-28 12:34:57 +02:00
casperlamboo
3b455377ba Improved hole detection algorithm 2015-07-28 12:28:08 +02:00
casperlamboo
7304a95276 Moved To ES6 2015-07-26 15:32:10 +02:00
casperlamboo
c541d70157 fixed closing line bug 2015-07-26 15:24:35 +02:00
casperlamboo
cd71f7a378 better names 2015-07-10 18:07:21 +02:00
casperlamboo
f8be250815 added support for non closing parts 2015-07-10 18:04:10 +02:00
casperlamboo
ce50b84010 improves slicing algorithm
fixed https://github.com/Doodle3D/Doodle3D-Slicer/issues/4
2015-07-10 15:06:51 +02:00
casperlamboo
bb42335353 added setMesh and setGeometry 2015-07-10 12:59:50 +02:00
casperlamboo
7064058464 Fix progress bug 2015-07-10 09:16:03 +02:00
casperlamboo
151dee5ee9 Fixed error with handling clipper
no longer need to comment clipper error alerts
2015-07-06 22:59:58 +02:00
casperlamboo
fee357b910 move THREE normal function to utils 2015-07-01 14:51:41 +02:00
casperlamboo
ffb8d337cb added printer outline for editor 2015-06-17 21:26:49 +02:00
casperlamboo
18b71b92f1 made some functions and variables private with "_" 2015-06-17 09:36:01 +02:00
casperlamboo
d99e302c38 added doodle_app and fixed https://github.com/Doodle3D/Doodle3D-Slicer/issues/6 2015-06-16 18:37:26 +02:00
casperlamboo
44994f61a8 slicer didn't fill top anymore; fixed 2015-06-16 12:37:51 +02:00
casperlamboo
f9ef14822b edited viable names and removed bug 2015-06-16 10:28:26 +02:00
casperlamboo
68e16a94a4 added infill overlap 2015-06-16 07:23:31 +02:00
casperlamboo
f25e6493b2 didn't thing about the difference in size when lines are diagonal 2015-06-16 01:38:33 +02:00
casperlamboo
89b07ff341 made diagonal infill 2015-06-16 01:25:06 +02:00
casperlamboo
a70ba60854 fixed bug https://github.com/Doodle3D/Doodle3D-Slicer/issues/3 2015-06-15 17:22:36 +02:00
casperlamboo
f7e9309e6d Fixed major bug 2015-06-15 11:40:19 +02:00
casperlamboo
06528f6d0f cleaner code 2015-06-15 10:21:05 +02:00
casperlamboo
74a83f9c3b fixed minor bugs 2015-06-13 20:09:44 +02:00
casperlamboo
67093d047d fixed spelling errors 2015-06-12 21:19:56 +02:00
casperlamboo
99b2b24d88 added three js editor + slicer 2015-06-12 15:58:26 +02:00
casperlamboo
14c5d85318 changed format settings 2015-06-11 15:42:38 +02:00
casperlamboo
090bdf248a Added slice abstraction to Slice class 2015-06-11 14:34:30 +02:00
casperlamboo
3bacee2072 improved index page
index page now checks if doodle boxes are alive before displaying them
2015-06-11 11:08:56 +02:00
casperlamboo
81ec036973 improved network error handling
can now reconnect when connecting failed
2015-06-11 10:28:21 +02:00
casperlamboo
a216addc3b Improved Support
While testing with printer improved the support
2015-06-10 18:25:49 +02:00
casperlamboo
57179fbe20 added Support 2015-06-09 21:58:22 +02:00
casperlamboo
17bd8f4f25 improved gcode handling 2015-06-09 11:08:06 +02:00
casperlamboo
38bf3c74f3 added gcode class, removed gulp
gulp didn’t make any more sense to use because it is build modulair
2015-06-05 09:56:58 +02:00
casperlamboo
67362c4ba8 fixed importing buffer geometry with bounding bug 2015-06-01 12:06:11 +02:00
casperlamboo
389dcc27d2 added progress bar 2015-05-29 13:51:18 +02:00
casperlamboo
32dc7df061 added benchmark for web workers 2015-05-29 10:41:44 +02:00
casperlamboo
e75db6d5bd first commit webworker
created web worker implementation

added class D3D.SlicerWorker
converts geometry to bufferGeometry
sends bufferGeometry to worker
in worker bufferGeometry gets converted back to geometry
2015-05-27 12:25:51 +02:00
casperlamboo
20374b9e6b added more pokemon 2015-05-26 11:44:15 +02:00
casperlamboo
f2327d3a21 improved variable names 2015-05-20 19:10:18 +02:00
casperlamboo
f24e96c5ac added separate settings files 2015-05-19 19:58:13 +02:00
casperlamboo
173e723656 sending gcode now in array 2015-05-19 19:04:20 +02:00
casperlamboo
20e80b390e changed gcode implementation from array to string
Makes more sense to store it as string rather then store it as array.
Doesn’t work with the doodle box though; think the doodle box adds \n
after each batch
2015-05-19 17:15:59 +02:00
casperlamboo
ec447ab56e added top & bottom thickness 2015-05-18 13:53:49 +02:00
casperlamboo
f38ab10e62 added flat shading to models instead of a wireframe 2015-05-17 23:22:27 +02:00
casperlamboo
26f13eb998 changest converting (x, y z) to (z, x) instead of (x, z)
see https://github.com/Doodle3D/Doodle3D-Slicer/issues/2
2015-05-17 19:58:44 +02:00
casperlamboo
a2e7bf4d85 fixed path optimizing when paths are empty 2015-05-15 17:35:18 +02:00
casperlamboo
e441c142b4 fixed mergin vertexes 2015-05-15 15:07:47 +02:00
casperlamboo
203fe6df19 Path optimizer 2015-05-15 11:14:44 +02:00
casperlamboo
81ff68d1f6 implimentent layer parts 2015-05-13 17:37:52 +02:00
casperlamboo
5ac9364cc3 step before layer part integration 2015-05-13 13:18:37 +02:00
casperlamboo
3a41b73c75 Implemented new layer part structure 2015-05-13 12:12:15 +02:00
casperlamboo
9740c254c2 created abstraction for clipper js 2015-05-12 11:29:01 +02:00
casperlamboo
498708e4e4 added algorithm to remove unnecessary polygons in shape 2015-05-08 14:29:06 +02:00
casperlamboo
c4c32234ae slicer now needs mesh instead of geometry
transformations of the mesh automatically apply to the geometry
2015-05-08 10:07:26 +02:00
casperlamboo
4d89f2161c added time logging for slicing 2015-05-07 18:14:10 +02:00
casperlamboo
c0a84e4207 fixed bug 2015-05-07 17:43:27 +02:00
casperlamboo
d9869634c7 init
slicing works; produces errors though
2015-05-07 17:27:41 +02:00
casperlamboo
5e43789f82 clean up code 2015-05-07 14:09:36 +02:00
casperlamboo
624409aa30 JS Hint fixed errors 2015-05-07 11:04:48 +02:00
casperlamboo
69e5534d0d fixed some problems with communication
updated communication shell see
http://www.doodle3d.com/help/api-documentation
2015-05-07 10:48:24 +02:00
casperlamboo
33576ad45b added more support for doodle box 2015-05-06 15:06:04 +02:00
casperlamboo
948865fc07 updated slicing
moved add line to create lines; makes line lookup private
2015-05-01 16:44:05 +02:00
casperlamboo
3d34c59514 fixed higher layer algorithm 2015-05-01 14:59:39 +02:00
casperlamboo
052f894c70 fixed conflict 2015-05-01 14:12:04 +02:00
casperlamboo
324b511d39 Merge branch 'development'
Conflicts:
	src/slicer.js
2015-05-01 14:10:57 +02:00
casperlamboo
737406ee04 added Gulp 2015-05-01 14:09:45 +02:00
casperlamboo
f7d723d43c cleaned files 2015-05-01 12:15:46 +02:00
casperlamboo
0f8135b4f2 cleaned files 2015-05-01 12:10:02 +02:00
casperlamboo
e17279f7c4 removed unused libraries 2015-05-01 11:17:41 +02:00
casperlamboo
d7dfdb62d9 fixed look up function 2015-05-01 11:03:07 +02:00
casperlamboo
d33f0d336c cleaned up files 2015-05-01 10:06:52 +02:00
casperlamboo
882f885d97 clean up files 2015-04-30 20:34:57 +02:00
casperlamboo
3803fbd5c0 Created Fills 2015-04-30 18:26:34 +02:00
casperlamboo
5015d31bce cleaned up code 2015-04-28 18:10:16 +02:00
casperlamboo
9d188bb0de fixed shape point order
only dot product is supposed to be > 0 in my code it’s < 0. some where
mathmatical problem maybe fix some where in the future (it works just
ugly)
2015-04-28 17:54:46 +02:00
casperlamboo
2f3f60a921 created save space 2015-04-28 16:08:56 +02:00
casperlamboo
5050bc0e40 improvement, starting point for collision fix 2015-04-28 14:11:41 +02:00
casperlamboo
ab9167e446 cleaner structure 2015-04-24 21:32:39 +02:00
casperlamboo
921708331d First commit 2015-04-24 16:12:48 +02:00