public override void readFloatArray(MFloatArray array, uint size) { Trace.Assert(myCurrentChanelNode != null); XmlNode floatArrayNode = myCurrentChanelNode.SelectSingleNode(floatArrayTag); XmlNodeList valueNodeList = floatArrayNode.SelectNodes("value"); array.clear(); array.length = size; foreach (XmlNode valueNode in valueNodeList) { double value = Convert.ToDouble(valueNode.InnerText); array.append((float)value); } return; }
public void append_uv(float u, float v) { ucoord.append(u); vcoord.append(v); }