I want to visualize a graph in 3d in paraview. This requires me to have points and edges connecting the points. I know how to make the points but can't seem to figure out how to make the edges.
Currently I can make .vtp files with points and associated vectors. I want to know how to modify my .vtp files to include these edges as well.
Thanks for any help!
You should use a vtkLineSource:
lineSource->GetOutput()
will give you a polydata that you can then write with avtkXMLPolyDataWriter
. See a full example here: http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Line