autodesk forge – APS Viewer API iterate through model objects

I am looking into a way to iterate over a model loaded into a Viewer to get items that are equivalent to the categories objects seen in Model Browser Panel in the ACC Docs Viewer:

 Model Browser Panel

Reading the documentation for current Viewer version 7, I see that there are getInstanceTree() and getObjectTree() methods.
GetInstanceTree() method returns InstanceTree object that is documented but I don’t seem to find info about object returned by getObjectTree() method.
So what is the difference between them? And what is the recommended way to traverse objects in the model and get those categories?

Read more here: Source link