[vtkusers] Visualizing a vector field
Bruno da Silva de Oliveira
bruno at esss.com.br
Fri Nov 4 11:49:26 EST 2005
Reinhard,
If they're all pointing to the X-axis, probably your input dataset has
no Vectors associated with the points. If they're in the cell data,
transfer them to point data using vtkCellDataToPointData. If the vector
array is in the point data already but is not assigned as Vectors, use
vtkAssignAttribute.
HTH,
Reinhard Hameeteman wrote:
>I am trying to visualize a 3d vector field. To achieve this I made the
>following pipeline:
>
>XMLImageDataReader->
>Cutter (with a Plane as CutFunction)->
>Glyph3D (with AwworSource)->
>PolyDataMapper->
>Actor->
>Renderer
>
>Using paraview a similar setup produces the desired result: a plane
>with arrows pointing in the direction of the vectors from the input
>dataset, scaled by the norm of those vectors. But when I program this
>myself the arrows don't get the right orientation and are all oriented
>along the x-axis. Should I apply a transform somewhere? Applying it to
>the ArrowSource or the Glyph3D only transform the whole dataset
>uniformly.
>
>Reinhard
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
--
Bruno da Silva de Oliveira
bruno at esss.com.br
ESSS - Engineering Simulation and Scientific Software
http://www.esss.com.br
More information about the vtkusers
mailing list