simplified
This commit is contained in:
parent
e855083964
commit
e8fae6b2a7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue