public int GetColorIndex(CIwColour v) { int i; if (colors.TryGetValue(v, out i)) return i; i = TargetMesh.VertCols.Colours.Count; TargetMesh.VertCols.Colours.Add(v); colors[v] = i; return i; }
public CTrisVertex GetVertex(CIwVec3 p, CIwAnimSkinSetKey bonesKey, IList<float> w, CIwVec3 n, CIwVec2 uv0, CIwVec2 uv1, CIwColour col) { int vertexIndex = GetPositionIndex(p,bonesKey,w); return new CTrisVertex(vertexIndex, GetNormalIndex(n), GetUV0Index(uv0), GetUV1Index(uv1), GetColorIndex(col)); }