mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-26 05:56:35 +01:00
Implement nearest point index and split at index to avoid search for point.
This commit is contained in:
1 parent
35fda7de23
commit
35ecd65e77
4 files changed
+31
-16
No files matched your search
@@ -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