mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-30 12:05:09 +08:00
Merge pull request #449 from olasd/master
Fix Slic3r::Polygon's boost_linestring method to properly close the polygon
This commit is contained in:
commit
23edd7587f
@ -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…
x
Reference in New Issue
Block a user