test output using point radius for extrusion width
This commit is contained in:
parent
b1eee58c1e
commit
d5b9d5d8f7
2 changed files with 24 additions and 7 deletions
|
|
@ -997,10 +997,14 @@ function doRender(slice, isSynth, params, opt = {}) {
|
|||
.setLayer('part', Color.part)
|
||||
.addPolys([top.poly]);
|
||||
|
||||
output
|
||||
if (top.shells?.length) output
|
||||
.setLayer(isSynth ? "support" : "shells", isSynth ? Color.support : Color.shell)
|
||||
.addPolys(top.shells || [], vopt({ offset, height, clean: true }));
|
||||
|
||||
if (top.thin_wall?.length) output
|
||||
.setLayer("walls", Color.thin)
|
||||
.addPolys(top.thin_wall.map(p => newPolygon().centerCircle(p, p.r, 12).setZ(slice.z)), vopt({ offset, height }));
|
||||
|
||||
if (top.fill_lines?.length) output
|
||||
.setLayer("solid fill", isSynth ? Color.support : Color.fill)
|
||||
.addLines(top.fill_lines || [], vopt({ offset: offset * solidWidth, height, z:slice.z }));
|
||||
|
|
@ -1017,10 +1021,6 @@ function doRender(slice, isSynth, params, opt = {}) {
|
|||
.setLayer("thin fill", Color.thin)
|
||||
.addLines(top.thin_fill, vopt({ offset, height }));
|
||||
|
||||
if (top.thin_wall?.length) output
|
||||
.setLayer("shells", Color.thin)
|
||||
.addPolys(top.thin_wall.map(p => newPolygon().centerCircle(p, p.r, 12).setZ(slice.z)), vopt({ offset, height }));
|
||||
|
||||
if (top.gaps?.length && devel) output
|
||||
.setLayer("gaps", Color.gaps)
|
||||
.addPolys(top.gaps, vopt({ offset, height, thin: true }));
|
||||
|
|
|
|||
Loading…
Reference in a new issue