private static PMDFormat.VertexList ConvertVertexList(PMXFormat pmx) { PMDFormat.VertexList result = new PMDFormat.VertexList(); result.vert_count = (uint)pmx.vertex_list.vertex.Length; result.vertex = new PMDFormat.Vertex[result.vert_count]; for (int i = 0; i < result.vert_count; i++) { result.vertex[i] = ConvertVertex(pmx, i); } return result; }
private static PMDFormat.VertexList ConvertVertexList(PMXFormat pmx) { PMDFormat.VertexList result = new PMDFormat.VertexList(); result.vert_count = (uint)pmx.vertex_list.vertex.Length; result.vertex = new PMDFormat.Vertex[result.vert_count]; for (int i = 0; i < result.vert_count; i++) { result.vertex[i] = ConvertVertex(pmx, i); } return(result); }
private PMDFormat.VertexList ReadVertexList() { PMDFormat.VertexList result = new PMDFormat.VertexList(); result.vert_count = binary_reader_.ReadUInt32(); result.vertex = new PMDFormat.Vertex[result.vert_count]; for (int i = 0; i < result.vert_count; i++) { result.vertex[i] = ReadVertex(); } return(result); }
private PMDFormat.VertexList ReadVertexList() { PMDFormat.VertexList result = new PMDFormat.VertexList(); result.vert_count = binary_reader_.ReadUInt32(); result.vertex = new PMDFormat.Vertex[result.vert_count]; for (int i = 0; i < result.vert_count; i++) { result.vertex[i] = ReadVertex(); } return result; }