remove ghost in thin line render, add fat for slice view (preview requires more work)

This commit is contained in:
Stewart Allen 2024-09-04 23:22:55 -04:00
commit 95f0569ecf
3 changed files with 14 additions and 12 deletions

View file

@ -25,13 +25,14 @@ const POLY = polygons,
tracker = util.pwait,
lopacity = 0.6,
opacity = 1,
fat = 1.5,
COLOR = {
anchor: { check: 0x999933, face: 0x999933, line: 0x999933, opacity, lopacity },
shell: { check: 0x0077bb, face: 0x0077bb, line: 0x0077bb, opacity, lopacity },
fill: { check: 0x00bb77, face: 0x00bb77, line: 0x00bb77, opacity, lopacity },
infill: { check: 0x3322bb, face: 0x3322bb, line: 0x3322bb, opacity, lopacity },
support: { check: 0xaa5533, face: 0xaa5533, line: 0xaa5533, opacity, lopacity },
gaps: { check: 0xaa3366, face: 0xaa3366, line: 0xaa3366, opacity, lopacity }
anchor: { check: 0x999933, face: 0x999933, line: 0x999933, opacity, lopacity, fat },
shell: { check: 0x0077bb, face: 0x0077bb, line: 0x0077bb, opacity, lopacity, fat },
fill: { check: 0x00bb77, face: 0x00bb77, line: 0x00bb77, opacity, lopacity, fat },
infill: { check: 0x3322bb, face: 0x3322bb, line: 0x3322bb, opacity, lopacity, fat },
support: { check: 0xaa5533, face: 0xaa5533, line: 0xaa5533, opacity, lopacity, fat },
gaps: { check: 0xaa3366, face: 0xaa3366, line: 0xaa3366, opacity, lopacity, fat }
},
PROTO = Object.clone(COLOR),
profile = false,

View file

@ -215,9 +215,9 @@ function prepareSlices(callback, scale = 1, offset = 0) {
if (scale === 1) {
view.update_stack_labels();
}
if (!isBelt && controller.lineType === 'line' && !process.xray && !controller.devel) {
$('render-ghost').onclick();
}
// if (!isBelt && controller.lineType === 'line' && !process.xray && !controller.devel) {
// $('render-ghost').onclick();
// }
if (scale === 1) {
show.progress(0);
}
@ -372,9 +372,9 @@ function preparePreview(callback, scale = 1, offset = 0) {
view.update_stack_labels();
let { controller, process } = settings;
if (!isBelt && controller.lineType === 'line' && !process.xray && !controller.devel) {
$('render-ghost').onclick();
}
// if (!isBelt && controller.lineType === 'line' && !process.xray && !controller.devel) {
// $('render-ghost').onclick();
// }
// mark preview complete for export
complete.preview = feature.pmode;

View file

@ -71,6 +71,7 @@ async function path(levels, update, opts = {}) {
opacity: flat ? 0.5 : 1
};
const printOpt = {
// fat: thin ? 1.5 : 0,
face: printColor,
line: flat ? 1 : printColor,
opacity: flat ? 0.5 : 1