Commit 58ded45e2dfe41e16b94b8ab0dd361ecf445b953
1 parent
9519edaa
Exists in
master
ENH: Removed VTK Warning Window
Showing
1 changed file
with
14 additions
and
0 deletions
Show diff stats
invesalius/data/surface_process.py
... | ... | @@ -65,6 +65,14 @@ def create_surface_piece(filename, shape, dtype, mask_filename, mask_shape, |
65 | 65 | smooth_iterations, language, flip_image, |
66 | 66 | from_binary, algorithm, imagedata_resolution, fill_border_holes): |
67 | 67 | |
68 | + | |
69 | + log_path = tempfile.mktemp('vtkoutput.txt') | |
70 | + fow = vtk.vtkFileOutputWindow() | |
71 | + fow.SetFileName(log_path) | |
72 | + ow = vtk.vtkOutputWindow() | |
73 | + ow.SetInstance(fow) | |
74 | + | |
75 | + | |
68 | 76 | pad_bottom = (roi.start == 0) |
69 | 77 | pad_top = (roi.stop >= shape[0]) |
70 | 78 | |
... | ... | @@ -177,6 +185,12 @@ def join_process_surface(filenames, algorithm, smooth_iterations, smooth_relaxat |
177 | 185 | except queue.Full as e: |
178 | 186 | print(e) |
179 | 187 | |
188 | + log_path = tempfile.mktemp('vtkoutput.txt') | |
189 | + fow = vtk.vtkFileOutputWindow() | |
190 | + fow.SetFileName(log_path) | |
191 | + ow = vtk.vtkOutputWindow() | |
192 | + ow.SetInstance(fow) | |
193 | + | |
180 | 194 | send_message('Joining surfaces ...') |
181 | 195 | polydata_append = vtk.vtkAppendPolyData() |
182 | 196 | for f in filenames: | ... | ... |