[vtkusers] how to do A three-dimensional plot dat displays vectors with components (u, v, w) at position (x, y, z)

yadin Bocuma Rivas conra2004 at yahoo.com
Mon Aug 20 13:42:58 EDT 2007


hi can any one send ME a small program on how to plot vectors in VTK
how can i see a plot of a 3d - sine,ETC
like i have this litle matlab program....how can i write something like this using 
vtk 
[X,Y] = meshgrid(-8:.5:8);         %CREATE THE POINTS
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
mesh(X,Y,Z,'EdgeColor','black') #%3d plot OF the points [X,Y,Z]

OR SOMETHING LIKE THIS

[X,Y] = meshgrid(-2:0.25:2,-1:0.2:1);
Z = X.* exp(-X.^2 - Y.^2);
[U,V,W] = surfnorm(X,Y,Z);
quiver3(X,Y,Z,U,V,W,0.5);
hold on
surf(X,Y,Z);
colormap hsv
view(-35,45)
axis ([-2 2 -1 1 -.6 .6])
hold off

I ATACHED SOM PICTURES OF THE KIND OF PLOTS I NEED
please i need to use vtk/python please any thing that can get me started will help
Nota: Se adjuntó el mensaje reenviado.
 __________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070820/e74039b4/attachment.htm>
-------------- next part --------------
An embedded message was scrubbed...
From: yadin Bocuma Rivas <conra2004 at yahoo.com>
Subject: simple 3d plots from matlab to VTK using python / A three-dimensional
	quiver plot displays vectors with components (u, v, w)
Date: Mon, 20 Aug 2007 12:29:56 -0500 (CDT)
Size: 2721
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070820/e74039b4/attachment.eml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled2.m
Type: application/octet-stream
Size: 212 bytes
Desc: 2871891332-Untitled2.m
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070820/e74039b4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.m
Type: application/octet-stream
Size: 106 bytes
Desc: 3531354362-Untitled.m
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070820/e74039b4/attachment-0001.obj>


More information about the vtkusers mailing list