[vtkusers] VTK for visualizing 3D Networks

Aron Helser aron.helser at kitware.com
Wed Mar 13 14:04:17 EDT 2019


Hi Benny,
Have you seen this?
https://www.westgrid.ca/events/westgrid_online_workshop_3d_graphs_networkx_vtk_and_paraview
It certainly shows that what you want is possible....
I'd also advise looking at more of the VTK examples - I think there's a
Glyph Mapper which will change the size/color of the spheres based on a
data value for you.
HTH,
Aron

On Sun, Mar 10, 2019 at 10:07 AM BennyS via vtkusers <vtkusers at vtk.org>
wrote:

> Hi all!
> I am relatively new to VTK but still surprised by the opportunities
> provided
> by the visualization tool kit. For this reason, I am currently trying to
> visualize a network using VTK. I saw some youtube videos concerning this
> objective, but I was not able to achieve this objective and struggled hard
> the last month..
>
> What I did so far:
> -I used networkx (python) to calculate the 3D positions of the node
> -Python VTK to plot spheres which represent the nodes and tubes which
> represent the edges.
>
> What I am not able to do:
> -I have information about the nodes which I would like to use to define the
> importance (=size?) of the nodes. Furthermore, this information is used to
> calculate the edge weigths.
> -Regarding the edge weights, it would be great to use this information for
> defining the tube color/diameter.
>
> I already found some threads directing to the MutableUndirectedGraph class
> for example. However, it seems to me that there is not clear way of doing
> it
> in a 3D manner.
>
> Maybe someone of you has some experience regarding this and could give me a
> helping hand?
> I would be really grateful!
>
> Thanks and cheers
> Benny
>
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190313/4e5ae434/attachment.html>


More information about the vtkusers mailing list