[Paraview] pvpython rendering

Berk Geveci berk.geveci at gmail.com
Fri Apr 7 11:06:30 EDT 2006


That is the sphere :-) It is rendering an outline as opposed to the
surface. The display proxy has a property called Representation, that
should be set  to surface (2, I believe). Look at
Servers/ServerManager/Resources/rendering.xml and search for
Representation.

-Berk

On 4/7/06, Milan Frank <milan.frank at gmail.com> wrote:
> Hi all,
>
> I'm trying to render a simple sphere with the pvpython interpreter.
> Does anyone know what I'm doing wrong?
>
> a) I was expecting a sphere to be displayed ...
> b) I was expecting interactivity from the renderer window ...
>
> I have the following piece of code:
>
> from vtkPVServerCommonPython import *
> from vtkPVServerManagerPython import *
>
> import msvcrt
>
> pm = vtkSMObject.GetProxyManager()
>
> ss = pm.NewProxy("sources", "SphereSource")
> pm.RegisterProxy("sources", "SphereSource0", ss)
>
> ef = pm.NewProxy("filters", "ElevationFilter")
> pm.RegisterProxy("filters", "ElevationFilter0", ef)
>
> ef.AddInput(ss, "SetInput", 0)
>
> rm = pm.NewProxy("rendermodules", "LODRenderModule")
> rm.UpdateVTKObjects()
>
> sd = rm.CreateDisplayProxy()
> sd.SetInput(ef)
>
> rm.AddDisplay(sd)
>
> rm.ResetCamera()
> rm.InteractiveRender()
>
> msvcrt.getch()
>
> The resulting window is in the screen.png picture.
>
> Thanks for any advices and/or comments,
> Milan.
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
>
>


More information about the ParaView mailing list