Loading lammps_vtk/LammpsVtkSerial.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -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]; Loading Loading @@ -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 Loading Loading
lammps_vtk/LammpsVtkSerial.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -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]; Loading Loading @@ -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 Loading