[vtkusers] display vtkUnstructuredGrid edges as tubes
Gerd Meiser
gerdmeiser at yahoo.com
Tue Apr 29 11:41:42 EDT 2008
Hello!
I am looking for a simple way to display the edges of a vtkUnstructuredGrid as tubes without iterating over each of the grid lines.
If the grid were not a vtkUnstructuredGrid, but generated by a vtkCubeSource instead, I can get the tubes with the following pyhton code:
CubeModel = vtk.vtkCubeSource()
[...]
Edges = vtk.vtkExtractEdges()
[...]
Edges.SetInputConnection(CubeModel.GetOutputPort())
Tubes = vtk.vtkTubeFilter()
Tubes.SetInputConnection(Edges.GetOutputPort())
Is there a way to use somthing similar to vtkExtractEdges() and vtkTubeFilter() on a vtkUnstructuredGrid?
Thank you
G. Meiser
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the vtkusers
mailing list