Skip to content

Commit 03b654a

Browse files
committed
feat: layer_0_z_overlap (CURA-1549)
1 parent c79a7f1 commit 03b654a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/FffPolygonGenerator.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ bool FffPolygonGenerator::sliceModel(MeshGroup* meshgroup, TimeKeeper& timeKeepe
115115
meshStorage.getSettingInMicrons("raft_base_thickness")
116116
+ meshStorage.getSettingInMicrons("raft_interface_thickness")
117117
+ meshStorage.getSettingAsCount("raft_surface_layers") * getSettingInMicrons("raft_surface_thickness")
118-
+ meshStorage.getSettingInMicrons("raft_airgap");
118+
+ meshStorage.getSettingInMicrons("raft_airgap")
119+
- meshStorage.getSettingInMicrons("layer_0_z_overlap"); // shift all layers (except 0) down
120+
if (layer_nr == 0)
121+
{
122+
layer.printZ += meshStorage.getSettingInMicrons("layer_0_z_overlap"); // undo shifting down of first layer
123+
}
119124
}
120125

121126

0 commit comments

Comments
 (0)