mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Implement nearest point index and split at index to avoid search for point.
This commit is contained in:
@@ -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) = @_;
|
||||
|
||||
Reference in New Issue
Block a user