Reference to a MFVec2f event-in slot.
C# |
---|
public abstract class EventInMFVec2f : |
EventIn
|
|
Click here to see the list of members.
The following example demonstrates how to write three
texture coordinate values into the "point" field of a
TextureCoordinate node:
C# |
---|
Vrml.EAI.Node textureCoordinate = ...;
Vrml.EAI.Field.EventInMFVec2f set_point = (Vrml.EAI.Field.EventInMFVec2f)textureCoordinate.GetEventIn("set_point");
float[][] v = new float[3][];
v[0] = new float[] { 0.0f, 0.0f }; // lower left
v[1] = new float[] { 1.0f, 0.0f }; // lower right
v[2] = new float[] { 0.5f, 1.0f }; // top center
set_point.SetValue(v);
|