[Paraview] Volume Rendering with python

David E DeMarle dave.demarle at kitware.com
Wed Jul 18 19:02:51 EDT 2012


Remember that in the GUI "Tools->Start Trace", "do something",
"Tools->Stop Trace" is the ideal way to learn how to "do something"
from the python scripting interface.

Try:
display_pipeline = Show(pointData, view)
display_pipeline.Representation = 'Volume'

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Sat, Jul 14, 2012 at 9:48 AM, Roba Binyahib
<roba.binyahib at kaust.edu.sa> wrote:
>
>
> Hello
>
> I want to change the representation to volume using python
>
> this is my script
>
> from paraview import servermanager
> servermanager.Connect()
> from paraview.simple import*
>
> reader = servermanager.sources.XdmfReader(FileName =
> "/.................../HCOOnly.xmf")
> reader.UpdatePipeline()
>
> pointData = servermanager.filters.CellDataToPointData(Input=reader)
> pointData.UpdatePipeline()
>
>
> view = servermanager.CreateRenderView()
> Show(pointData, view)
> Render(view)
>
> I want to perform the volume representation on pointData
>
>
> Hope someone can help
>
>
> thanks
>
>
> ________________________________
> This message and its contents, including attachments are intended solely for
> the original recipient. If you are not the intended recipient or have
> received this message in error, please notify me immediately and delete this
> message from your computer system. Any unauthorized use or distribution is
> prohibited. Please consider the environment before printing this email.
> _______________________________________________
> Powered by www.kitware.com
>
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list