Implement nearest point index and split at index to avoid search for point.
This commit is contained in:
parent
35fda7de23
commit
35ecd65e77
4 changed files with 31 additions and 16 deletions
|
@ -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) = @_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue