mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
ParaView-5.0.1: Added the source-tree to ThirdParty-dev and patched as described in the README file
Resolves bug-report http://bugs.openfoam.org/view.php?id=2098
This commit is contained in:
15
ParaView-5.0.1/VTK/Examples/Infovis/Python/hello_world.py
Normal file
15
ParaView-5.0.1/VTK/Examples/Infovis/Python/hello_world.py
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from vtk import *
|
||||
|
||||
source = vtkRandomGraphSource()
|
||||
|
||||
view = vtkGraphLayoutView()
|
||||
view.AddRepresentationFromInputConnection(source.GetOutputPort())
|
||||
|
||||
view.GetRenderWindow().SetSize(600, 600)
|
||||
view.ResetCamera()
|
||||
view.Render()
|
||||
view.GetInteractor().Start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user