From 58ded45e2dfe41e16b94b8ab0dd361ecf445b953 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Junqueira Amorim Date: Fri, 5 Apr 2019 10:02:08 -0300 Subject: [PATCH] ENH: Removed VTK Warning Window --- invesalius/data/surface_process.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) diff --git a/invesalius/data/surface_process.py b/invesalius/data/surface_process.py index 3113df0..3ba1632 100644 --- a/invesalius/data/surface_process.py +++ b/invesalius/data/surface_process.py @@ -65,6 +65,14 @@ def create_surface_piece(filename, shape, dtype, mask_filename, mask_shape, smooth_iterations, language, flip_image, from_binary, algorithm, imagedata_resolution, fill_border_holes): + + log_path = tempfile.mktemp('vtkoutput.txt') + fow = vtk.vtkFileOutputWindow() + fow.SetFileName(log_path) + ow = vtk.vtkOutputWindow() + ow.SetInstance(fow) + + pad_bottom = (roi.start == 0) pad_top = (roi.stop >= shape[0]) @@ -177,6 +185,12 @@ def join_process_surface(filenames, algorithm, smooth_iterations, smooth_relaxat except queue.Full as e: print(e) + log_path = tempfile.mktemp('vtkoutput.txt') + fow = vtk.vtkFileOutputWindow() + fow.SetFileName(log_path) + ow = vtk.vtkOutputWindow() + ow.SetInstance(fow) + send_message('Joining surfaces ...') polydata_append = vtk.vtkAppendPolyData() for f in filenames: -- libgit2 0.21.2