soften flat borders in fdm mode
This commit is contained in:
parent
38099de82b
commit
a51af1d4c6
2 changed files with 9 additions and 7 deletions
2
app.js
2
app.js
|
|
@ -304,7 +304,7 @@ const script = {
|
||||||
"ext/clip2",
|
"ext/clip2",
|
||||||
"ext/tween",
|
"ext/tween",
|
||||||
"ext/fsave",
|
"ext/fsave",
|
||||||
"ext/earcut",
|
// "ext/earcut",
|
||||||
"ext/base64",
|
"ext/base64",
|
||||||
"add/array",
|
"add/array",
|
||||||
"add/three",
|
"add/three",
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,15 @@
|
||||||
tracker = UTIL.pwait,
|
tracker = UTIL.pwait,
|
||||||
FILL = KIRI.fill,
|
FILL = KIRI.fill,
|
||||||
FILLFIXED = KIRI.fill_fixed,
|
FILLFIXED = KIRI.fill_fixed,
|
||||||
|
lopacity = 0.6,
|
||||||
|
opacity = 1,
|
||||||
COLOR = {
|
COLOR = {
|
||||||
anchor: { check: 0x999933, face: 0x999933, line: 0x999933, opacity: 1 },
|
anchor: { check: 0x999933, face: 0x999933, line: 0x999933, opacity, lopacity },
|
||||||
shell: { check: 0x0077bb, face: 0x0077bb, line: 0x0077bb, opacity: 1 },
|
shell: { check: 0x0077bb, face: 0x0077bb, line: 0x0077bb, opacity, lopacity },
|
||||||
fill: { check: 0x00bb77, face: 0x00bb77, line: 0x00bb77, opacity: 1 },
|
fill: { check: 0x00bb77, face: 0x00bb77, line: 0x00bb77, opacity, lopacity },
|
||||||
infill: { check: 0x3322bb, face: 0x3322bb, line: 0x3322bb, opacity: 1 },
|
infill: { check: 0x3322bb, face: 0x3322bb, line: 0x3322bb, opacity, lopacity },
|
||||||
support: { check: 0xaa5533, face: 0xaa5533, line: 0xaa5533, opacity: 1 },
|
support: { check: 0xaa5533, face: 0xaa5533, line: 0xaa5533, opacity, lopacity },
|
||||||
gaps: { check: 0xaa3366, face: 0xaa3366, line: 0xaa3366, opacity: 1 }
|
gaps: { check: 0xaa3366, face: 0xaa3366, line: 0xaa3366, opacity, lopacity }
|
||||||
},
|
},
|
||||||
PROTO = Object.clone(COLOR),
|
PROTO = Object.clone(COLOR),
|
||||||
getRangeParameters = FDM.getRangeParameters,
|
getRangeParameters = FDM.getRangeParameters,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue