[Paraview] Python: access to point coordinates and cells
Berk Geveci
berk.geveci at kitware.com
Wed Dec 2 10:09:21 EST 2009
Just to elaborate/clarify on Dave's e-mail in the context of ParaView
> if reader is a vtk class, then use:
> reader.GetOutput()
i.e. if you are writing Python code for the programmable filter
> if reader is a paraview proxy AND you are connected to the builtin server,
> reader.GetClientSideObject() will return the vtk class, which you can
> then cal GetOutput() on.
i.e. if you are writing code for pvbatch/pypython/python/ParaView's
Python console AND you are not connected to a server
> if reader is a paraview proxy but you are connected to a remote server
> then you have to use servermanager.Fetch to aggregate and deliver the
> output to the client
same as above but you are connected to a server
-berk
On Wed, Dec 2, 2009 at 9:50 AM, David E DeMarle
<dave.demarle at kitware.com> wrote:
> if reader is a vtk class, then use:
> reader.GetOutput()
>
> if reader is a paraview proxy AND you are connected to the builtin server,
> reader.GetClientSideObject() will return the vtk class, which you can
> then cal GetOutput() on.
>
> if reader is a paraview proxy but you are connected to a remote server
> then you have to use servermanager.Fetch to aggregate and deliver the
> output to the client
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
>
> On Wed, Dec 2, 2009 at 9:26 AM, Fred Fred <stan1313 at hotmail.fr> wrote:
>> In Tcl [reader GetOutput] returns the data set from a reader. Is there the
>> same kind of method in Python? I have just found method for getting cell
>> data, point data and field data.
>>
>>
>> ________________________________
>> Vous êtes étudiants ? Bénéficiez de Windows 7 à 35? ! Découvrez notre offre
>> !
>> _______________________________________________
>> 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
>>
>>
> _______________________________________________
> 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