Returns the current value of the MFVec2f event-out slot.
Declaring type: EventOutMFVec2f
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void GetValue (
        float[] value
) 
Parameters
value
An array of float values that gets filled with the current vector values. The number of elements in this array must be at least two times the number of vector values. The elements at the positions [i x 2] get filled with the x components of the vectors, and the elements at [i x 2 + 1] with the y components (for 0 <= i < Size).
Collapse/Expand Example
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]);