mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-30 08:32:42 +00:00
Cache a Z table for layer range search
This commit is contained in:
@@ -6,7 +6,7 @@ use warnings;
|
||||
use Slic3r::XS;
|
||||
use Test::More tests => 1;
|
||||
|
||||
is_deeply Slic3r::Object::XS::get_layer_range([ 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 ], 39, 69),
|
||||
[2, 6], 'get_layer_range';
|
||||
my $table = Slic3r::Object::XS::ZTable->new([ 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 ]);
|
||||
is_deeply $table->get_range(39, 69), [2, 6], 'get_layer_range';
|
||||
|
||||
__END__
|
||||
|
||||
Reference in New Issue
Block a user