1 | By using the name you gave in the DEF, you can get the handle of particular node with the help of Browser object. |
2 | // Get handle to the ROOT Node where there is a DEF ROOT in VRML file |
3 | try |
4 | { root = browser.getNode("ROOT"); |
5 | System.out.println("Got the ROOT node: " + root); |
6 | } catch (InvalidNodeException e) |
7 | { System.out.println("PROBLEMS!: " + e);} |