Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-11-04 02:55:43 +0300
committerbubnikv <bubnikv@gmail.com>2016-11-04 02:55:43 +0300
commit61d82b02b527066803584bc3bcfd3da852caebab (patch)
tree852fd90a541f40e30d06a078c9e62f5f6a563006 /xs/src/libslic3r/Fill
parent483a658144a2a59cd0f7f7eea4bcac8cbb45eb44 (diff)
Improves https://github.com/prusa3d/Slic3r/issues/3
Limits the length of an infill connecting segment of a solid infill to 3x the solid infill spacing.
Diffstat (limited to 'xs/src/libslic3r/Fill')
-rw-r--r--xs/src/libslic3r/Fill/Fill.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/xs/src/libslic3r/Fill/Fill.cpp b/xs/src/libslic3r/Fill/Fill.cpp
index 940ff4f25..bcfed56f0 100644
--- a/xs/src/libslic3r/Fill/Fill.cpp
+++ b/xs/src/libslic3r/Fill/Fill.cpp
@@ -196,19 +196,22 @@ void make_fill(LayerRegion &layerm, ExtrusionEntityCollection &out)
*layerm.layer()->object()
);
f->spacing = internal_flow.spacing();
- using_internal_flow = 1;
+ using_internal_flow = true;
} else {
f->spacing = flow.spacing();
}
double link_max_length = 0.;
-#if 0
if (! is_bridge) {
+#if 0
link_max_length = layerm.region()->config.get_abs_value(surface.is_external() ? "external_fill_link_max_length" : "fill_link_max_length", flow.spacing());
// printf("flow spacing: %f, is_external: %d, link_max_length: %lf\n", flow.spacing(), int(surface.is_external()), link_max_length);
- }
+#else
+ if (density > 80.) // 80%
+ link_max_length = 3. * f->spacing;
#endif
-
+ }
+
f->layer_id = layerm.layer()->id();
f->z = layerm.layer()->print_z;
f->angle = Geometry::deg2rad(layerm.region()->config.fill_angle.value);