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