Slic3r::Polygon's boost_linestring method needs to close the contour.

This prevented Slic3r from detecting some bridge supporting edges
(basically, if that edge was the last one in the contour).  This
addresses some of the bridge detection issues (#414, #358).
This commit is contained in:
Nicolas Dandrimont 2012-06-14 13:33:59 +02:00
parent 74f92aa686
commit 4296ea6da1

View File

@ -16,6 +16,11 @@ sub lines {
return @lines;
}
sub boost_linestring {
my $self = shift;
return Boost::Geometry::Utils::linestring([@$self, $self->[0]]);
}
sub is_counter_clockwise {
my $self = shift;
return Math::Clipper::is_counter_clockwise($self);