[vtkusers] Does vtkUnstructuredGrid behaves differently in 5.0.4 than 4.4.2?

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Oct 22 03:59:18 EDT 2008


On Wed, Oct 22, 2008 at 1:14 AM, Thuc Bui <bui at calcreek.com> wrote:
> Hi All,
>
> I hope someone can help me out. I am porting my application using VTK 4.4.2
> to 5.0.4 and encountering a behavior of vtkUnstructuredGrid that is
> different (and fatal in my case) from 4.4.2. Below are the codes that I use
> showing 5.0.4 returns zero for both the number of cells and points whilst
> 4.4.2 returns correct numbers.
>
> Can any one point out for me what should I modify my codes to get the
> correct behavior of 4.4.2?
>
> Many thanks in advance for your help,
> Thuc Bui
>
> vtkDataSetReader* unstructGridReader = vtkDataSetReader::New();
>
> // the file is in unstructured grid format
> unstructGridReader->SetFileName("myVTKdata.txt");
>
> // to force a re-read because in actual code, unstructGridReader is
> // instantiated else where and the file could be modified in between
> unstructGridReader->Modified();


Call ->Update() instead.  If this used to work on VTK 4.4, this is a
bug, then fill in a bug report.


-- 
Mathieu



More information about the vtkusers mailing list