simplified

This commit is contained in:
Martin Diehl 2021-02-11 21:56:53 +01:00
parent e855083964
commit e8fae6b2a7
1 changed files with 14 additions and 16 deletions

View File

@ -347,7 +347,6 @@ class VTK:
See http://compilatrix.com/article/vtk-1 for further ideas.
"""
def screen_size():
try:
import wx
_ = wx.App(False) # noqa
@ -363,7 +362,6 @@ class VTK:
width = 1024
height = 768
return (width,height)
mapper = vtk.vtkDataSetMapper()
mapper.SetInputData(self.vtk_data)
actor = vtk.vtkActor()
@ -377,7 +375,7 @@ class VTK:
ren.AddActor(actor)
ren.SetBackground(0.2,0.2,0.2)
window.SetSize(screen_size[0],screen_size[1])
window.SetSize(width,height)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(window)