TODO about bridges and support material

visilibity
Alessandro Ranellucci 2014-04-29 23:40:52 +02:00
parent ef2296dc8d
commit 3e3cc4171c
1 changed files with 3 additions and 2 deletions

View File

@ -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