[Paraview] python shell move data from client to server

Florian Beck Flo.44 at gmx.de
Wed Jun 29 05:23:00 EDT 2011


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


More information about the ParaView mailing list