Of course, PyViz is an excellent Interactive Visualization tool for ns-3. It can be used to visualize 2D network scenarios in an Interactive manner. Will it be possible to make it more usable for the purpose of visualizing a 3D network scenario?
Up to now, could not see any such example ns-3 simulations that trying to use it for visualizing a 3D network scenario. Of course, it may be possible with the present PyViz itself - I do not know. The developers of the ns-3 PyViz only confirm this.
For the kind perusal of the ns-3/PyViz developers, I noticed an interesting 3D visualization tool called PyViz3D. It is a web-based visualizer for 3D objects and point clouds. That tool also seems to be using the original PyViz(?) core project, but for making a 3D visualization tool out of it. The following is one such output of that tool:

It is blazingly fast even on a web browser and was able to render a 3D scene without any lagging. One may check a demo at [2]. It shows some theoretical possibility to make a 3D-Ns3PyViz, an Interactive 3D Visualization tool that will work similar to NetSimulyzer but in an interactive manner without using any trace output files.
If the authors of PyViz (ns-3) are seeing this post, then they can think about that possibility or tell something about the present capability/possiblity of ns-3's PyViz in this regard.
Please Refer :