[vtkusers] Displaying Hedgeogs at cell centers

Fabrice Vincent fabrice.vincent at creatis.insa-lyon.fr
Wed Nov 22 10:01:56 EST 2000


Hi

you can use vtkCellCenters to build a dataset whose points are  the cell centers.

fabrice

Jeff Lee wrote:

> Hi all,
> I have an unstructured grid dataset with cell data consisting of vectors
> and scalars.  I am using a vtkUnstructuredGridReader to read the data
> file and am trying to plot vectors at the cell centroids.  It seems that
> functions like vtkHedgeHog and vtk3DGlyph take only point data as
> arguments, and I can use these if I convert my data using
> vtkCellDataToPointData, but the data is cell data and I want the vectors
> plotted at cell centers, not at cell vertices.  My question is, what
> would be the best way to display the vectors at cell-centers?  Any help
> would be greatly appreciated,
> -Jeff
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

--
Fabrice VINCENT

CREATIS (CNRS UMR 5515), INSA 502, 69621 Villeurbanne, FRANCE
email: fabrice.vincent at creatis.insa-lyon.fr
 Tel. : +33 (0)4 72 43 63 06
 Fax : +33 (0)4 72 43 85 26






More information about the vtkusers mailing list