Octave graphic add-on, Octaviz



česky

1.6 Mesh 3D graph - vtk_mesh



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


Displays a mesh 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.

Optional parameter fmt:
radius (size) of spheres - parameter BallRadius
radius (thickness) of lines - parameter LineRadius


Examples:
[x,y]=meshgrid(0:1:4*pi,0:1:4*pi);
z=sin(x);
vtk_mesh(x,y,z,'BallRadius',0.2);



Triaxial teardrop:
[u,v]=meshgrid(0.01:pi/20:pi,0:pi/20:2*pi);
x=(1-cos(u)).*cos(u+2*pi/3).*cos(v+2*pi/3)/2;
y=(1-cos(u)).*cos(u+2*pi/3).*cos(v-2*pi/3)/2;
z=cos(u-2*pi/3);
vtk_mesh(x,y,z,'Fancy',1)



<<< 1.5 Contour graph - vtk_contour3 1.7 Mesh 3D graph with setup color conevrsion - vtk_meshc >>>

© 2008 David Prokop