[vtkusers] Vector Field
prabhu at aero.iitm.ernet.in
Wed Sep 18 11:04:37 EDT 2002
>>>>> "AC" == Arno Candel <candel at itp.phys.ethz.ch> writes:
AC> Hi, I want to read a couple of vectors in from a file and plot
AC> them as a vector field, using hegdehogs.
AC> The vectors (dx,dy,dz) are located on (x,y,z). So there are 6
AC> floats per vector to be read in.
You could generate a VTK file containing the data and use it. If the
data points are regular create a structured points data set and simply
store the vectors as data attributes. Read the vtk file format docs
about this -- http://www.vtk.org/pdf/file-formats.pdf.
If you want to do this in VTK directly without a file look up the
AC> Could anybody please provide me with a simple example tcl
AC> script? I can't seem to manage it myself. I hope there must be
AC> a simple way to do it...
<plug> Possibly the simplest way to do it would be to use some simple
tool to do it. MayaVi (http://mayavi.sf.net) should do a reasonable
job if its given a VTK data file. </plug>
More information about the vtkusers