"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Demos/TriD/tvrml.p" between
PDL-2.082.tar.gz and PDL-2.083.tar.gz

About: PDL (Perl Data Language) aims to turn perl into an efficient numerical language for scientific computing (similar to IDL and MatLab).

tvrml.p  (PDL-2.082):tvrml.p  (PDL-2.083)
skipping to change at line 31 skipping to change at line 31
$x = sin($u*15 + $t * 3)/2+0.5 + 5*($t-0.5)**2; $x = sin($u*15 + $t * 3)/2+0.5 + 5*($t-0.5)**2;
$cx = PDL->zeroes(3,$nx+1,$nx+1); $cx = PDL->zeroes(3,$nx+1,$nx+1);
random($cx->inplace); random($cx->inplace);
$pdl = PDL->zeroes(3,20); $pdl = PDL->zeroes(3,20);
$pdl->inplace->random; $pdl->inplace->random;
$cols = PDL->zeroes(3,20); $cols = PDL->zeroes(3,20);
$cols->inplace->random; $cols->inplace->random;
$g = PDL::Graphics::TriD::get_new_graph; $g = PDL::Graphics::TriD::get_new_graph;
$name = $g->add_dataseries(new PDL::Graphics::TriD::Points($pdl,$cols)); $name = $g->add_dataseries(PDL::Graphics::TriD::Points->new($pdl,$cols));
$g->bind_default($name); $g->bind_default($name);
$name = $g->add_dataseries(new PDL::Graphics::TriD::Lattice([SURF2D,$x])); $name = $g->add_dataseries(PDL::Graphics::TriD::Lattice->new([SURF2D,$x]));
$g->bind_default($name); $g->bind_default($name);
$name = $g->add_dataseries(new PDL::Graphics::TriD::SLattice_S([SURF2D,$x+1],$cx , $name = $g->add_dataseries(PDL::Graphics::TriD::SLattice_S->new([SURF2D,$x+1],$c x,
{Smooth=>1,Lines=>0})); {Smooth=>1,Lines=>0}));
$g->bind_default($name); $g->bind_default($name);
$g->scalethings(); $g->scalethings();
describe3d('A simple test of describe3d('A simple test of
the current PDL 3D the current PDL 3D
VRML module'); VRML module');
$win = PDL::Graphics::TriD::get_current_window(); $win = PDL::Graphics::TriD::get_current_window();
use PDL::Graphics::TriD::Logo; use PDL::Graphics::TriD::Logo;
$win->add_object(new PDL::Graphics::TriD::Logo); $win->add_object(PDL::Graphics::TriD::Logo->new);
#use Data::Dumper; #use Data::Dumper;
#my $out = Dumper($win); #my $out = Dumper($win);
#print $out; #print $out;
$win->display('netscape'); $win->display('netscape');
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)