Skip to content

Commit c178515

Browse files
committed
::Lattice get all index types as ulong
1 parent ec6af2c commit c178515

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/PDL/Graphics/TriD/Objects.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ sub new {
263263
PDL::barf "Lattice: points must be 3,x,y: got ($x $y @extradims)" if @extradims or $tri != 3;
264264
if ($shading) {
265265
my $inds = PDL::ulong(0,1,$x,$x+1,$x,1)->slice(',*'.($x-1).',*'.($y-1));
266-
my $indadd = PDL->sequence($x,$y)->slice('*1,:-2,:-2');
266+
my $indadd = PDL->sequence(PDL::ulong,$x,$y)->slice('*1,:-2,:-2');
267267
my $faceidx = ($inds + $indadd)->splitdim(0,3)->clump(1..3);
268268
my %less = %$options; delete @less{qw(Lines)};
269269
my @colordims = $colors->dims;

0 commit comments

Comments
 (0)