VTK Exodus Reader
Hello All,
i am new to VTK and was trying to load a Exodus File in VTK. it has tetrahedral mesh in it and it looks like it is connecting all the nodes internally. I have attached snapshots of visualization in Paraview and VTK. It looks like in Paraview they have handled it.
i have used following code
exoFileReader = vtkSmartPointer<vtkExodusIIReader>::New();
exoFileReader->SetFileName(<.exo file path>);
exoFileReader->UpdateInformation();
exoDataIterator = (exoFileReader->GetOutput())->NewIterator();
exoDataIterator->GoToFirstItem();
while(!exoDataIterator->IsDoneWithTraversal())
{
exoDataObject = exoDataIterator->GetCurrentDataObject();
exoDataSetSurfaceFilter = vtkSmartPointer<vtkGeometryFilter>:: New();
exoDataSetSurfaceFilter->SetInputData(exoDataObject);
exoDataSetSurfaceFilter->Update();
exoDataMapper = vtkSmartPointer<vtkDataSetMapper> :: New();
exoDataMapper->SetInputData(exoPolyData);
exoPolyData = exoDataSetSurfaceFilter->GetOutput();
exoActor = vtkSmartPointer<vtkActor>::New();
exoActor->SetMapper(exoDataMapper);
exoActor->GetProperty()->SetRepresentationToSurface();
exoActor->GetProperty()->EdgeVisibilityOn();
exoActor->GetProperty()->SetInterpolationToGouraud();
exoActor->VisibilityOn();
}
Please let me know if i have missed anything in it.
Thanks, Ameya