Implement nearest point index and split at index to avoid search for point.

This commit is contained in:
Mark Hindess 2012-07-02 20:26:56 +01:00
parent 35fda7de23
commit 35ecd65e77
4 changed files with 31 additions and 16 deletions

View file

@ -97,6 +97,12 @@ sub nearest_point_to {
return Slic3r::Point->new($point);
}
sub nearest_point_index_to {
my $self = shift;
my ($point) = @_;
return Slic3r::Geometry::nearest_point_index($point, $self);
}
sub has_segment {
my $self = shift;
my ($line) = @_;