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
922111c3e3
Don't scale up or scale down open shapes
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
0c1c47c0c1
Scale down open paths
2017-06-22 13:22:17 +02:00
casperlamboo
0bc84ed0a2
normalize cleanDelta with precision
2017-06-22 13:21:19 +02:00
casperlamboo
f70723d6dc
clean after simplify
2017-06-22 13:21:19 +02:00
casperlamboo
c8af1b422a
fix construction of clipper paths
2017-06-22 13:21:19 +02:00
casperlamboo
d8e95e3e76
replace tabs with spaces
2017-06-22 13:21:19 +02:00
Simon Voordouw
9210504ea4
update dependencies and fix Three.js imports
2017-06-22 13:21:19 +02:00
casperlamboo
b7ab01c39d
use simplify('pftNonZero') instead of deprecated removeOverlap function
2017-06-22 13:21:19 +02:00
casperlamboo
a9ae3b220e
update three.js
2017-06-22 13:21:19 +02:00
casperlamboo
b3300decb7
don't calculate 1 - alpha twice
2017-06-22 13:21:19 +02:00
casperlamboo
2fc909c45d
prettify
2017-06-22 13:21:18 +02:00
casperlamboo
785898f466
fix indenting
2017-06-22 13:21:18 +02:00
casperlamboo
de2f2ceafd
remove enter
2017-06-22 13:21:18 +02:00
casperlamboo
6af54e2362
rename sliceWorker to slicerWorker
2017-06-22 13:21:18 +02:00
casperlamboo
f4db432e24
add all optional arguments in Shape constructor
2017-06-22 13:21:18 +02:00
casperlamboo
29e46217f8
use mapToLower to get path data
2017-06-22 13:21:18 +02:00
casperlamboo
4c4cd96ddf
added map to lower argument
2017-06-22 13:21:18 +02:00
casperlamboo
e457994496
implement async slicing
2017-06-22 13:21:18 +02:00
casperlamboo
c6a9d5adb8
reorganize folders and make Slicer.slice promise
2017-06-22 13:21:18 +02:00
casperlamboo
9c9474c201
add capital to constructor functions 1/2
2017-06-22 13:21:18 +02:00
casperlamboo
726b30621c
move set settings to constructor
2017-06-22 13:21:18 +02:00
casperlamboo
7ddd97549a
use single quotes
2017-06-22 13:21:18 +02:00
casperlamboo
401e42cfef
implement optimize paths
2017-06-22 13:21:18 +02:00
casperlamboo
9711b9631d
use destructure in add brim
2017-06-22 13:21:18 +02:00
casperlamboo
eaf1af1412
add action log
2017-06-22 13:21:18 +02:00
casperlamboo
dd71c872d4
move file
2017-06-22 13:21:18 +02:00
casperlamboo
16e0c9696a
remove comment
2017-06-22 13:21:18 +02:00
casperlamboo
9eef3c0074
remove line break
2017-06-22 13:21:18 +02:00
casperlamboo
604bce6a1a
move support enabled check
2017-06-22 13:21:18 +02:00
casperlamboo
f3796f80e8
typo
2017-06-22 13:21:18 +02:00
casperlamboo
32f6e6c4ba
fix action log
2017-06-22 13:21:18 +02:00
casperlamboo
d60c2d46d0
move scale up and scale down to separate function
2017-06-22 13:21:18 +02:00
casperlamboo
492a09cce9
move brim code to separate function
2017-06-22 13:21:18 +02:00
casperlamboo
78052f79e8
use default dimensionsZ name
2017-06-22 13:21:18 +02:00
casperlamboo
f22a40fa73
move down path to code
2017-06-22 13:21:18 +02:00
casperlamboo
8785b1baee
remove line break
2017-06-22 13:21:18 +02:00
casperlamboo
c2c432a6fe
update create lines
2017-06-22 13:21:18 +02:00
casperlamboo
af396bf58a
cleanup calculate layers intersections
2017-06-22 13:21:18 +02:00
casperlamboo
7e9bb39ba9
cleanup slices to geode
2017-06-22 13:21:18 +02:00
casperlamboo
1056be13bd
implement constants
2017-06-22 13:21:18 +02:00
casperlamboo
a064306d60
single quotes
2017-06-22 13:21:18 +02:00
casperlamboo
d33ab23ddf
else on one line
2017-06-22 13:21:18 +02:00
casperlamboo
3ea0d33610
replace vars with const and let
2017-06-22 13:21:18 +02:00
casperlamboo
a0d469c85c
fix infills
2017-06-22 13:21:18 +02:00
casperlamboo
cf38ea9e96
replace var with const
2017-06-22 13:21:18 +02:00
casperlamboo
9e6dcf08f9
fix get fill template
2017-06-22 13:21:18 +02:00
casperlamboo
3f43477ef6
fix join
2017-06-22 13:21:18 +02:00
casperlamboo
f1475e8b97
remove unused imports
2017-06-22 13:21:18 +02:00
casperlamboo
ae45f6bcf8
rafacter
2017-06-22 13:21:18 +02:00
casperlamboo
4747d072b9
geplakt var with const or let in createLines
2017-06-22 13:21:18 +02:00
casperlamboo
87b8f1f29b
remove var for const or let in calculateLayerIntersections.js
2017-06-22 13:21:18 +02:00
casperlamboo
f1e5d8a47a
use deconstructs
2017-06-22 13:21:18 +02:00
casperlamboo
be77d6eeb5
move adeline to separate file
2017-06-22 13:21:18 +02:00
casperlamboo
ed76a9f255
use s6 string
2017-06-22 13:21:18 +02:00
casperlamboo
0900eda91d
separate into actions into different files
2017-06-22 13:21:18 +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
721b75b1f5
Don't scale up or scale down open shapes
2017-05-19 11:56:53 +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
c9cbd1fc49
Scale down open paths
2017-05-16 10:38:40 +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
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
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
4b5a49c829
add capital to constructor functions 1/2
2016-08-19 13:50:06 +02:00
casperlamboo
06c61a3cf6
move set settings to constructor
2016-05-08 10:31:00 +02:00
casperlamboo
7517f522d0
use single quotes
2016-05-07 23:46:08 +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