[vtk-developers] Bug in vtk 6.0 - vtkGenericEnSightReader

madz madaramh at gmail.com
Sun Jun 21 23:34:27 EDT 2015


I have tried to read an EnsightFile in vtk version 6.2 but it seems that I
was not getting the correct result, so I tested the code in vtk version 6.0
it gives an erroneous value for the number of points as well;


        vtkSmartPointer<vtkGenericEnSightReader> reader  = 
vtkSmartPointer<vtkGenericEnSightReader>::New();
        reader->SetCaseFileName(name);
        reader->Update();
        vtkSmartPointer<vtkCompositeDataGeometryFilter> compositeFilter =
vtkSmartPointer<vtkCompositeDataGeometryFilter>::New();
        compositeFilter->SetInputConnection(reader->GetOutputPort());
        compositeFilter->Update();

        int num  = compositeFilter->GetOutput()->GetNumberOfPoints(); //for
vs 6.0 and 6.2 this gives 163736 but in vtk 5.8 it gives 1098108

I have tried the same code in vtk version 5.8 and it seems to give the
correct value, which is almost 7 times as large. I think that the latter
versions omit the points inside the model and only gives the boundary
points. What sort of workaround should I use to get the correct results in
vtk 6.2? 



--
View this message in context: http://vtk.1045678.n5.nabble.com/Bug-in-vtk-6-0-vtkGenericEnSightReader-tp5732470.html
Sent from the VTK - Dev mailing list archive at Nabble.com.


More information about the vtk-developers mailing list