Skip to content

Commit d65cd60

Browse files
committed
add setting
1 parent 15d7856 commit d65cd60

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

settings/AdditiveSettings.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ public override MachineInfo BaseMachine {
223223
/*
224224
* Solid fill settings
225225
*/
226+
public double ShellsFillNozzleDiamStepX = 1.0; // multipler on Machine.NozzleDiamMM, defines spacing between adjacent
227+
// nested shells/perimeters. If < 1, they overlap.
226228
public double SolidFillNozzleDiamStepX = 1.0; // multipler on Machine.NozzleDiamMM, defines spacing between adjacent
227-
// solid fill parallel lines
229+
// solid fill parallel lines. If < 1, they overlap.
228230
public double SolidFillBorderOverlapX = 0.25f; // this is a multiplier on Machine.NozzleDiamMM, defines how far we
229231
// overlap solid fill onto border shells (if 0, no overlap)
230232

@@ -281,6 +283,9 @@ public override MachineInfo BaseMachine {
281283
* functions that calculate derived values
282284
* NOTE: these cannot be properties because then they will be json-serialized!
283285
*/
286+
public double ShellsFillPathSpacingMM() {
287+
return Machine.NozzleDiamMM * ShellsFillNozzleDiamStepX;
288+
}
284289
public double SolidFillPathSpacingMM() {
285290
return Machine.NozzleDiamMM * SolidFillNozzleDiamStepX;
286291
}
@@ -319,7 +324,8 @@ protected virtual void CopyFieldsTo(SingleMaterialFFFSettings to)
319324
to.RoofLayers = this.RoofLayers;
320325
to.FloorLayers = this.FloorLayers;
321326

322-
to.SolidFillNozzleDiamStepX = this.SolidFillNozzleDiamStepX;
327+
to.ShellsFillNozzleDiamStepX = this.ShellsFillNozzleDiamStepX;
328+
to.SolidFillNozzleDiamStepX = this.SolidFillNozzleDiamStepX;
323329
to.SolidFillBorderOverlapX = this.SolidFillBorderOverlapX;
324330

325331
to.SparseLinearInfillStepX = this.SparseLinearInfillStepX;

0 commit comments

Comments
 (0)