Huge speed Boost (pun intended). Also fixes a problem where infill was escaping perimeters sometimes (#305).

This commit is contained in:
Alessandro Ranellucci 2012-04-09 11:04:32 +02:00
parent a800b97fdd
commit 5bfe19a8b9
6 changed files with 42 additions and 78 deletions

View file

@ -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) = @_;