[Gmsh] VTK writer bug
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Thu Oct 9 08:19:58 CEST 2008
prw at ceiriog.eclipse.co.uk 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
> gmsh at geuz.org
> 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