Writing vtk file for generating unstructured grid.


I’m fairly new to Paraview and I’m trying to write a vtk file to visualize a grid using the unstructured grid option. Having manually inspected the data the points and connectivity seem to be right but the resulting grid looks weird. I have attached the vtkGrid.vtk (322 Bytes) . Am I missing something here? Any inputs would help. Thank you.



Looks like your cells are twisted.

Hello Mathieu,

Thank you. I just figured it out. The order in which the cell vertices were taken was not correct. Didn’t think it mattered. Thanks again.