mirror of
https://github.com/wassname/simpeg.git
synced 2026-09-09 11:34:26 +08:00
Fixed interface so the renderer uses Trackball interaction, extent and limits work.
Added a notebook, showing a simple example of using the vtkView
This commit is contained in:
@@ -189,6 +189,7 @@ class vtkTools(object):
|
||||
renwin = vtk.vtkRenderWindow()
|
||||
renwin.AddRenderer(ren)
|
||||
iren = vtk.vtkRenderWindowInteractor()
|
||||
iren.GetInteractorStyle().SetCurrentStyleToTrackballCamera()
|
||||
iren.SetRenderWindow(renwin)
|
||||
|
||||
return iren, renwin
|
||||
|
||||
Reference in New Issue
Block a user