[vtkusers] newbie data import question

Gert Van den Eynde gvdeynde at sckcen.be
Tue Mar 25 10:01:44 EST 2003


Hi all,

I'm just starting to learn VTK (looking at the examples, reading the user guide) and I'm struggling with getting my data in the right format for VTK to read.

My data are (scalar) results from calculations in a hexagonal-Z meshing. I have the data as a list in which each element consists of a hexagon position in the lattice, z-level and the scalar value. The position in the lattice is easily transformed in a xy coordinate for the hexagonal center, if needed. 

Should I take the path of VtkPolyData or a VtkUnstructuredGrid? In case of VtkUnstructuredGrid, do I have to define every 'cell' or can I somehow tell VTK that the grid is a regular repitition of this cell type?


Thanks,

Gert



More information about the vtkusers mailing list