preserve doubleside on flats, frontside on solids
This commit is contained in:
parent
b383ba7ace
commit
83f814d42b
3 changed files with 10 additions and 10 deletions
|
|
@ -170,7 +170,7 @@
|
|||
Object.values(COLOR).forEach(color => {
|
||||
color.flat = true;
|
||||
color.line = 1
|
||||
color.opacity = 0.5;
|
||||
color.opacity = 1;
|
||||
});
|
||||
} else {
|
||||
Object.keys(COLOR).forEach(key => {
|
||||
|
|
|
|||
|
|
@ -232,14 +232,14 @@
|
|||
slice.unioned.forEach(poly => {
|
||||
poly = poly.clone(true);//.move(widget.track.pos);
|
||||
render
|
||||
.setLayer("layers", { line: 0x010101, face: 0x0099cc, opacity: 0.2 })
|
||||
.setLayer("layers", { line: 0x010101, face: 0x0099cc, opacity: 0.4 })
|
||||
.addAreas([poly], { outline: true });
|
||||
});
|
||||
} else if (slice.tops) {
|
||||
slice.tops.forEach(top => {
|
||||
let poly = top.poly;//.clone(true).move(widget.track.pos);
|
||||
render
|
||||
.setLayer("layers", { line: 0x010101, face: 0xfcba03, opacity: 0.2 })
|
||||
.setLayer("layers", { line: 0x010101, face: 0xfcba03, opacity: 0.4 })
|
||||
.addAreas([poly], { outline: true });
|
||||
});
|
||||
}
|
||||
|
|
@ -247,7 +247,7 @@
|
|||
if (slice.supports) {
|
||||
slice.supports.forEach(poly => {
|
||||
render
|
||||
.setLayer("support", { line: 0x010101, face: 0xfcba03, opacity: 0.2 })
|
||||
.setLayer("support", { line: 0x010101, face: 0xfcba03, opacity: 0.4 })
|
||||
.addAreas([poly], { outline: true });
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue