mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-05 17:17:06 +02:00
Huge speed Boost (pun intended). Also fixes a problem where infill was escaping perimeters sometimes (#305).
This commit is contained in:
@@ -2,6 +2,7 @@ package Slic3r::Line;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Boost::Geometry::Utils;
|
||||
use Slic3r::Geometry qw(A B X Y);
|
||||
|
||||
sub new {
|
||||
@@ -31,6 +32,11 @@ sub coordinates {
|
||||
return ($self->a->coordinates, $self->b->coordinates);
|
||||
}
|
||||
|
||||
sub boost_linestring {
|
||||
my $self = shift;
|
||||
return Boost::Geometry::Utils::linestring($self);
|
||||
}
|
||||
|
||||
sub coincides_with {
|
||||
my $self = shift;
|
||||
my ($line) = @_;
|
||||
|
||||
Reference in New Issue
Block a user