Setting up the SceneGraphAnalyzer

I’m trying to create a SceneGraphAnalyzer object.

I’m confused as to what has to be passed to its add_node method (I’d like to analyze my entire scene).

The add_node method takes a pointer to a PandaNode. How do I get this pointer?

sga = new SceneGraphAnalyzer();

You’d want to pass it the render node; and not the NodePath, but the PandaNode referenced by it: