add line width parameter

This commit is contained in:
Stewart Allen 2021-05-28 21:36:39 -04:00
commit 76839128e1
5 changed files with 8 additions and 7 deletions

View file

@ -66,7 +66,6 @@
sdev = settings.device,
isBelt = sdev.bedBelt,
isSynth = widget.track.synth,
update_start = Date.now(),
minSolid = spro.sliceSolidMinArea,
solidLayers = spro.sliceSolidLayers,
vaseMode = spro.sliceFillType === 'vase' && !isSynth,
@ -76,17 +75,14 @@
sliceHeight = spro.sliceHeight,
firstSliceHeight = isBelt ? sliceHeight : spro.firstSliceHeight,
nozzleSize = sdev.extruders[extruder].extNozzle,
lineWidth = nozzleSize,
lineWidth = spro.sliceLineWidth || nozzleSize,
fillOffsetMult = 1.0 - bound(spro.sliceFillOverlap, 0, 0.8),
firstWidthMult = spro.firstLayerShellMult || 1,
shellOffset = lineWidth,
fillSpacing = lineWidth,
fillOffset = lineWidth * fillOffsetMult,
sliceFillAngle = spro.sliceFillAngle,
supportDensity = spro.sliceSupportDensity,
view = widget.mesh && widget.mesh.newGroup ? widget.mesh.newGroup() : null,
beltfact = Math.cos(Math.PI/4),
invbfact = 1 / beltfact;
beltfact = Math.cos(Math.PI/4);
isFlat = ctrl.lineType === "flat";
isThin = !isFlat && ctrl.lineType === "line";