From 3e3cc4171c1edf09c61c974b8a38476502ab0529 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 29 Apr 2014 23:40:52 +0200 Subject: [PATCH] TODO about bridges and support material --- lib/Slic3r/Print/SupportMaterial.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Print/SupportMaterial.pm b/lib/Slic3r/Print/SupportMaterial.pm index b1cffe06a..e31ec015c 100644 --- a/lib/Slic3r/Print/SupportMaterial.pm +++ b/lib/Slic3r/Print/SupportMaterial.pm @@ -160,6 +160,7 @@ sub contact_area { } if ($self->object_config->dont_support_bridges) { + # TODO: also remove the area of bridging perimeters if (1) { # remove the entire bridges and only support the unsupported edges my @bridges = map $_->expolygon, @@ -171,11 +172,11 @@ sub contact_area { [ map @$_, @bridges ], 1, ); - + push @$diff, @{intersection( [ map @{$_->grow(+scale MARGIN)}, @{$layerm->unsupported_bridge_edges} ], [ map @$_, @bridges ], - )} + )}; } else { # just remove bridged areas