Contributors This is to test EAI.

This is proof of concept of getting nodes from scene into array of nodes, helping DEF structure.

This acts as simple Node Traversal mechanism in EAI.

One of the biggest features that the EAI enables is node traversal through reading the value of SFNode exposedField.

Using this process, you can get any node beneath a node that has been designated with the DEF keyword in the VRML file.

Doing this allows you to send or receive values from an indefinite number of child nodes of a grouping nodes.

The above example is a very simplistic one. It gets a Group node that has been designated with DEF keyword PROTOGROUPNODE.

The PROTOGROUPNODE has as children five PROTOs. Through the EAI, the PROTOGROUPNODE's eventOut children_changed is gotten. This eventOut's value is the array of PROTO Nodes. Then, using simple i=0 to n-1 iteration, each PROTO is sent a value to a given eventIn.

Here is source for .java file TestExternal4.java

By Ross A. Finlayson 1997, 1998. last modified 6/14/1998.

Portions of code from Tiny3D.

EAI FAQ