From ee5787308115a8b6f596e589546e59337306f17f Mon Sep 17 00:00:00 2001 From: "jianjia.ma" Date: Fri, 7 Jun 2024 20:33:47 +0800 Subject: [PATCH] FIX: crosshatch height shift error since orca commit jira 6984 Fix the layer shift cauculating error while reducing wrapping after importing the improvement from orca. Change-Id: I1af1b29a6578836e5715685a4478a5b1d29f4ecf --- src/libslic3r/Fill/FillCrossHatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Fill/FillCrossHatch.cpp b/src/libslic3r/Fill/FillCrossHatch.cpp index 10f421bef..f4215a58a 100644 --- a/src/libslic3r/Fill/FillCrossHatch.cpp +++ b/src/libslic3r/Fill/FillCrossHatch.cpp @@ -148,7 +148,7 @@ static Polylines generate_infill_layers(coordf_t z_height, double repeat_ratio, Polylines result; coordf_t trans_layer_size = grid_size * 0.4; // upper. coordf_t repeat_layer_size = grid_size * repeat_ratio; // lower. - z_height += repeat_layer_size / 2 + trans_layer_size; // offset to improve first few layer strength and reduce the risk of warpping. + z_height += repeat_layer_size / 2 ; // offset to improve first few layer strength and reduce the risk of warpping. coordf_t period = trans_layer_size + repeat_layer_size; coordf_t remains = z_height - std::floor(z_height / period) * period; coordf_t trans_z = remains - repeat_layer_size; // put repeat layer first.