[Paraview] python shell move data from client to server

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jun 29 09:49:57 EDT 2011


Nope, moving data from client to server in the way you describe is not
supported in ParaView. For what you are trying to do, you should
really implement a filter (with multiple inputs, if needed) to do the
data-manipulation on the server-side itself.

Utkarsh

On Wed, Jun 29, 2011 at 5:23 AM, Florian Beck <Flo.44 at gmx.de> wrote:
> Hi,
>
> I want to create a DataObjectGenerator with an unstructered Grid. And when later I want to modify the grid. My try looks as follows:
>
>
> # create the DataObjectGenerator
> DataObjectGenerator1 = DataObjectGenerator()
> DataObjectGenerator1.Program ='UG1'
>
> # read some coord from over objects
> ...
>
> # to manipulate the grid fetch it
> mysource = FindSource("DataObjectGenerator1")
> output = servermanger.Fetch(mysource)
> # clean old data
> output.Initialize()
>
> # create some points and  triangle cells
> pts = pts.vtkPoints()
> ...
> output.SetPoints(pts)
> ...
> pointIds = vtk.vtkIdList()
> ...
> output.InsertNextCell(5,pointIds)
> ...
> # print the ugrid object
> print output
> mysource.UpdatePipeline()
> Render()
>
> My problem is after i manipulate the ugrid on the client side there, i can't move it to the server side??? Is there a solution to connect the manipulated ugrid at server side with my DataObjectGenerator ?  I know there are the programmable source, but i need data from other objects to manipulate the grid and i want to use my python script as macro.
>
> regards flo
> --
> NEU: FreePhone - kostenlos mobil telefonieren!
> Jetzt informieren: http://www.gmx.net/de/go/freephone
>
>
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> _______________________________________________
> 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