Skip to content

Commit 7d04c3a

Browse files
committed
use zeroes method not give args again
1 parent 3d27912 commit 7d04c3a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/PDL/Graphics/TriD/Graph.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ sub add_lattice_axis {
219219
$verts->slice("2") .= 1012.5;
220220
$verts->slice("0")->inplace->ylinvals($nc[0],$nc[0]+$nadd[0]*($ns[0]-1));
221221
$verts->slice("1")->inplace->zlinvals($nc[1],$nc[1]+$nadd[1]*($ns[1]-1));
222-
my $tverts = PDL->zeroes(PDL::float(),3,$ns[0],$ns[1]);
223-
$tverts = $this->transform($tverts,$verts,[0,1,2]);
222+
my $tverts = $this->transform($verts->zeroes,$verts,[0,1,2]);
224223
$this->delete_object($this->{LatticeObj}) if $this->{LatticeObj};
225224
$this->add_object($this->{LatticeObj} = PDL::Graphics::TriD::Lattice->new($tverts, {Shading=>0}));
226225
}

0 commit comments

Comments
 (0)