[Paraview] Support for Graphs in Paraview

David Doria daviddoria at gmail.com
Mon Mar 29 13:51:19 EDT 2010


I have some filters that make graphs on point clouds. They currently derive
from vtkGraphAlgorithm and then in FillInputPortInformation they accept a
vtkDataSet instead of a vtkGraph. The output remains a vtkGraph. To
visualize these things in Paraview, I have been using vtkGraphToPolyData to
convert the graph to a polydata data which can be written to a vtp file.

My question is: if I want to make a plugin for these graph-on-point-set
creation filters, should I make a wrapper class that derives from
vtkPolyDataAlgorithm and simply calls my class (which produces a vtkGraph)
followed by a call to vtkGraphToPolyData? Or is there a way that Paraview
can handle a vtkGraph output object directly?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100329/ca457e9c/attachment.htm>


More information about the ParaView mailing list