Octave graphic add-on, Octaviz



česky

1.7 Mesh 3D graph with setup color conevrsion - vtk_meshc



Function file: f = vtk_meshc (x,y,z,c [fmt| prop, val])


Displays both a mesh and contour plot defined by x,y,z matrices, where x and y are typically formed by meshgrid. c is an optional matrix to give a color scale.

Parameter fmt:
radius (size) of spheres - parameter BallRadius
radius (thickness) of lines - parameter LineRadius
number of contour lines - parameter NConts


Example:
[x,y]=meshgrid(1:3,10:14);
z=x;
c=[0,0,0;1,1,1;2,2,2;3,3,3;4,4,4];
vtk_meshc(x,y,z,c,'NConts',5,'LineRadius',0.1)




<<< 1.6 Mesh 3D graph - vtk_mesh 1.8 3D polygon - vtk_poly3 >>>

© 2008 David Prokop