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, tracker = util.pwait,
lopacity = 0.6, lopacity = 0.6,
opacity = 1, opacity = 1,
fat = 1.5,
COLOR = { COLOR = {
anchor: { check: 0x999933, face: 0x999933, line: 0x999933, opacity, lopacity }, anchor: { check: 0x999933, face: 0x999933, line: 0x999933, opacity, lopacity, fat },
shell: { check: 0x0077bb, face: 0x0077bb, line: 0x0077bb, opacity, lopacity }, shell: { check: 0x0077bb, face: 0x0077bb, line: 0x0077bb, opacity, lopacity, fat },
fill: { check: 0x00bb77, face: 0x00bb77, line: 0x00bb77, opacity, lopacity }, fill: { check: 0x00bb77, face: 0x00bb77, line: 0x00bb77, opacity, lopacity, fat },
infill: { check: 0x3322bb, face: 0x3322bb, line: 0x3322bb, opacity, lopacity }, infill: { check: 0x3322bb, face: 0x3322bb, line: 0x3322bb, opacity, lopacity, fat },
support: { check: 0xaa5533, face: 0xaa5533, line: 0xaa5533, opacity, lopacity }, support: { check: 0xaa5533, face: 0xaa5533, line: 0xaa5533, opacity, lopacity, fat },
gaps: { check: 0xaa3366, face: 0xaa3366, line: 0xaa3366, opacity, lopacity } gaps: { check: 0xaa3366, face: 0xaa3366, line: 0xaa3366, opacity, lopacity, fat }
}, },
PROTO = Object.clone(COLOR), PROTO = Object.clone(COLOR),
profile = false, profile = false,

View file

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

View file

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