From: Jonathan S. <jjs...@us...> - 2010-02-03 16:10:45
|
Update of /cvsroot/octaviz/octaviz/Scripts In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22427/Scripts Modified Files: vtk_imshow.m vtk_trisurf.m Log Message: attempt to get octaviz working with vtk-5.2, courtesy of Andreas Potschka Index: vtk_trisurf.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtk_trisurf.m,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- vtk_trisurf.m 6 Sep 2008 12:35:34 -0000 1.12 +++ vtk_trisurf.m 3 Feb 2010 16:10:37 -0000 1.13 @@ -117,10 +117,6 @@ end pts = [x y z]; end - - if (find(isnan(pts)) || find(isnan(t))) - error("Sorry, NaN values are not supported in VTK\n"); - endif vtk_init; Index: vtk_imshow.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtk_imshow.m,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- vtk_imshow.m 23 Jul 2008 19:36:02 -0000 1.3 +++ vtk_imshow.m 3 Feb 2010 16:10:37 -0000 1.4 @@ -30,7 +30,7 @@ error('Input matrix has to be NxM or NxMx3.'); end - [nr nc nl] = size(a); + [nr nc] = size(a); if ( ndims(a) == 2 ) ncomp = 1; @@ -39,9 +39,6 @@ if ( ndims(a) == 3 ) ncomp = 3; - if (nl~=3) - error('third dimension must be have a length of 3') - endif len = nr*nc*3; image = zeros(len,1); image(1:3:len) = a(:,:,1); |