Octave graphic add-on, Octaviz



česky

1.3 Line in verge - function vtk_line3



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


Plots 3D line segments between the specified points. The data point coordinates must be given as 3 equal size x, y, and z matrices.

Optional parameter fmt:
color of line - parameter Color
radius of line - parameter Radius
transparency - parameter Opacity


Examples:
x=0:pi/1000:2*pi;
y=sin(x);
z=x;
z2=2*pi:-pi/1000:0;
vtk_line3(x',y',z','r','Radius',.08)
vtk_line3(x',y',z','r','Radius',.08)



Torus by lines:
meridian=6; nlongitude=11;
phi=0:pi/1000:2*pi;
mu=phi*nmeridian;
x=cos(mu).*(1+cos(nlongitude*mu/nmeridian)/2.0);
y=sin(mu).*(1+cos(nlongitude*mu/nmeridian)/2.0);
z=sin(nlongitude*mu/nmeridian)/2.0);
vtk_line3(x',y',z','Radius',0.05);



<<< 1.2 Arrows in verge - function vtk_arrows3 1.4 Function vtk_plot and vtk_plot3 >>>

© 2008 David Prokop