Hello, new member here. I wonder if there is a documented way for running pure VTK examples from within the paraview python console and/or programmable source/filters.
For example, something like this.
import vtk
cone = vtk.vtkConeSource()
mapper = vtk.vtkPolyDataMapper()
mapper.SetInputConnection(cone.GetOutputPort())
actor = vtk.vtkActor()
actor.SetMapper(mapper)
window = vtk.vtkRenderWindow()
window.SetSize(500, 500)
interactor = vtk.vtkRenderWindowInteractor()
interactor.SetRenderWindow(window)
renderer = vtk.vtkRenderer()
window.AddRenderer(renderer)
renderer.AddActor(actor)
# Setting the background to blue.
renderer.SetBackground(0.1, 0.1, 0.4)
window.Render()
interactor.Start()
Currently, although this works, it creates a new pyqt window on mac os. I wonder, if there is a documented way or examples to link this to paraview views and objects ?.
Thank You.