Commit 74c4fb6b authored by Moreland, Ken's avatar Moreland, Ken
Browse files

Update to latest version of VTK

There was some backward incompatible code from VTK 7. Some minor changes
were necessary.
parent 9c545e67
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1879,7 +1879,8 @@ void writeTrackingGraphToFile(const LAMMPS &rLammps, vtkPolyData *pCavitiesW,
    pCavitiesW->GetPolys()->InitTraversal();

    int i = 0;
    vtkIdType npts, *pts;
    vtkIdType npts;
    vtkIdType const *pts;
    while (pCavitiesW->GetPolys()->GetNextCell(npts, pts)) {
      double p[3];

@@ -2271,8 +2272,8 @@ void visualize(LAMMPS &rLammps, float radius, SplatterType splatterHe,
      vtkSmartPointer<vtkWindowToImageFilter>::New();
  window_to_image->SetInput(render_window.GetPointer());
  // 7/20/2021 KDH: it seems VTK has changed SetMagnification to SetScale (?)
  window_to_image->SetMagnification(3); // Try Larger, maybe 5 or 10 -Ian
  // window_to_image->SetScale(3); //Try Larger, maybe 5 or 10 -Ian
  // window_to_image->SetMagnification(3); // Try Larger, maybe 5 or 10 -Ian
  window_to_image->SetScale(3); //Try Larger, maybe 5 or 10 -Ian
  // set the resolution of the output image (3 times the current resolution of
  // vtk render window)
  window_to_image->SetInputBufferTypeToRGB(); // also record the alpha