We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9ee108 commit c00864aCopy full SHA for c00864a
demos/test5.p
@@ -22,15 +22,15 @@ my @objs = (
22
['Lattice', {Shading=>3, Lighting => 1, Smooth=>1}],
23
);
24
my $i = 0;
25
-@objs = map [$i++, @$_], @objs;
26
-my ($below_obj, $above_obj) = map [$_, 'Lines'], -1, 0+@objs;
+@objs = map mk_trid($i++, @$_), @objs;
+my ($below_obj, $above_obj) = map mk_trid($_, 'Lines'), -1, 0+@objs;
27
28
sub mk_trid { "PDL::Graphics::TriD::$_[1]"->new($y+pdl(0,0,$_[0]),$c,$_[2]) }
29
30
my $win = PDL::Graphics::TriD::get_current_window();
31
my $g = PDL::Graphics::TriD::Graph->new;
32
-my @all = [map mk_trid(@$_), $below_obj, @objs, $above_obj];
33
-push @all, map [map mk_trid(@$_), $below_obj, $_, $above_obj], @objs;
+my @all = [$below_obj, @objs, $above_obj];
+push @all, map [$below_obj, $_, $above_obj], @objs;
34
for my $these (@all) {
35
$g->clear_data;
36
$win->clear_viewport;
0 commit comments