mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Huge speed Boost (pun intended). Also fixes a problem where infill was escaping perimeters sometimes (#305).
This commit is contained in:
parent
a800b97fdd
commit
5bfe19a8b9
6 changed files with 42 additions and 78 deletions
|
@ -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) = @_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue