/// <summary> /// Return the f line string (i.e. 1 2 3) /// </summary> /// <param name="coordIndex"></param> /// <param name="i_coordIndex"></param> /// <returns></returns> private static string GetIndexesF(CoordIndexWrl coordIndex, int i_coordIndex) { string strIndexesF = ""; foreach (int index in coordIndex.Indexes) { strIndexesF += string.Format("{0} ", 1 + index + i_coordIndex); } return(strIndexesF.TrimEnd()); // Remove the ending space }
/// <summary> /// Return the f line string (i.e. 1/1 2/2 3/3) /// </summary> /// <param name="coordIndex"></param> /// <param name="texCoordIndex"></param> /// <param name="i_coordIndex"></param> /// <param name="i_texCoordIndex"></param> /// <returns></returns> private static string GetIndexesF(CoordIndexWrl coordIndex, CoordIndexWrl texCoordIndex, int i_coordIndex, int i_texCoordIndex) { string strIndexesF = ""; List <int> coordIndexesList = coordIndex.Indexes; List <int> texCoordIndexesList = texCoordIndex.Indexes; for (int i = 0; i < coordIndexesList.Count; i++) { // WRL index start at 0 while OBJ index start at 1 strIndexesF += string.Format("{0}/{1} ", 1 + coordIndexesList[i] + i_coordIndex, 1 + texCoordIndexesList[i] + i_texCoordIndex); } return(strIndexesF.TrimEnd()); // Remove the ending space }