Hi,

I  want to get the value of Height[] of the node ElevationGrid using
Java EAI.

------------VRML------------

geometry DEF GeoDEM ElevationGrid{
.....
height[ ............]
}
--------------Java EAI-----------------

EventOutMFFloat HeightOut = null;

public void start() {
     browser = (Browser) vrml.external.Browser.getBrowser(this);

    try {
///////////////////////////////////////////////////////////////////
 /// Get Elevation Height
    // Get the elevation node...
      Dem = browser.getNode("GeoDEM");
  HeightOut = (EventOutMFFloat)Dem.getEventOut("height");  // Is it
right?

....

( Do  the following lines need to be included in Callback?)
      ///////////////////////////////////////////////////
      /// Get Height of DEM ////////////////////////////
       float[] H = new float[10000];    // 100X100
       H=HeightOut.getValue();   // Is it right?


Additionally, I find the node ElevationGrid just has " eventIn  MFFloat
set_height ", can I get the height value without exposedField of height?

Can somebody help me?

Thanks in advance

Jianhua


Reply via email to