[EMAIL PROTECTED] wrote: > In GModel::writeVTK, I think the number of elements is not counted > correctly. I have found that numElements includes "elements" (in fact > vertices) for which getTypeForVTK() is zero and which therefore are not > written. VTK's vtkUnstructuredGridReader objects to this when reading > CELLS or CELL_TYPES, since the number of lines following is less than > the count. > > The count should be calculated as in the attached patch.
Thanks! This is now fixed in CVS. Binary output should now also work, as should a basic VTK format reader. > > Peter Wainwright > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > gmsh mailing list > [email protected] > http://www.geuz.org/mailman/listinfo/gmsh -- Prof. Christophe Geuzaine University of Liege, Electrical Engineering and Computer Science http://www.montefiore.ulg.ac.be/~geuzaine _______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
