Returns the current value of the MFVec3f event-out slot.
C# |
---|
public abstract void GetValue (
float[][] value
) |
The following example gets the coordinates from the "point"
field of a Coordinate node and prints them to the console:
C# |
---|
Vrml.EAI.Node coordinate = ...;
Vrml.EAI.Field.EventOutMFVec3f point_changed = (Vrml.EAI.Field.EventOutMFVec3f)coordinate.GetEventOut("point_changed");
int size = point_changed.Size;
float[][] v = new float[size][];
for (int i = 0; i < size; ++i)
v[i] = new float[3];
point_changed.GetValue(v);
for (int i = 0; i < size; ++i)
System.Console.WriteLine("x = " + v[i][0] + ", y = " + v[i][1] + ", z = " + v[i][2]);
|