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:
parent
74f92aa686
commit
4296ea6da1
@ -16,6 +16,11 @@ sub lines {
|
|||||||
return @lines;
|
return @lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub boost_linestring {
|
||||||
|
my $self = shift;
|
||||||
|
return Boost::Geometry::Utils::linestring([@$self, $self->[0]]);
|
||||||
|
}
|
||||||
|
|
||||||
sub is_counter_clockwise {
|
sub is_counter_clockwise {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
return Math::Clipper::is_counter_clockwise($self);
|
return Math::Clipper::is_counter_clockwise($self);
|
||||||
|
Loading…
Reference in New Issue
Block a user