Hi! In this post <https://blog.kitware.com/paraview-python-view-is-now-more-versatile/> there's a link to a list of potentially usable libraries in ParaView's PythonView and VTK is listed among them.
I am trying to render a vtkRenderWindow() with a vtkCylinderSource() in it. import vtk > rw = vtk.vtkRenderWindow() > ren = vtk.vtkRenderer() > rw.AddRenderer(ren) > cylinder = vtk.vtkCylinderSource() > cylinder.SetResolution(8) > cylinderMapper = vtk.vtkPolyDataMapper() > cylinderMapper.SetInputConnection(cylinder.GetOutputPort()) > cylinderActor = vtk.vtkActor() > cylinderActor.SetMapper(cylinderMapper) > cylinderActor.RotateX(30.0) > cylinderActor.RotateY(-45.0) > ren.AddActor(cylinderActor) > ren.SetBackground(0.1, 0.2, 0.4) > rw.Render() I've tried separating the graphics structure in the | render(view, width, heigh) | from the source actor and mapper part of the code but no sucess The result does not show up in the python view but instead it opens a new opengl context Is it possible to do what I am trying to? Best regards, Leonardo Pessanha Laboratory of Computational Methods in Engineering Federal University of Rio de Janeiro - COPPE Rio de Janeiro, RJ, Brasil
_______________________________________________ Powered by www.kitware.com ParaView discussion is moving! Please visit https://discourse.paraview.org/ for future posts. Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: https://public.kitware.com/mailman/listinfo/paraview
