private PMXFormat.FaceVertexList ReadFaceVertexList()
    {
        PMXFormat.FaceVertexList result = new PMXFormat.FaceVertexList();
        uint face_vert_count            = binary_reader_.ReadUInt32();

        result.face_vert_index = new uint[face_vert_count];
        for (uint i = 0, i_max = (uint)result.face_vert_index.Length; i < i_max; ++i)
        {
            result.face_vert_index[i] = CastIntRead(binary_reader_, format_.header.vertexIndexSize);
        }
        return(result);
    }
示例#2
0
	private PMXFormat.FaceVertexList ReadFaceVertexList() {
		PMXFormat.FaceVertexList result = new PMXFormat.FaceVertexList();
		uint face_vert_count = binary_reader_.ReadUInt32();
		result.face_vert_index = new uint[face_vert_count];
		for (uint i = 0, i_max = (uint)result.face_vert_index.Length; i < i_max; ++i) {
			result.face_vert_index[i] = CastIntRead(binary_reader_, format_.header.vertexIndexSize);
		}
		return result;
	}
 private static PMXFormat.FaceVertexList ConvertFaceVertexList(PMDFormat pmd)
 {
     PMXFormat.FaceVertexList result = new PMXFormat.FaceVertexList();
     result.face_vert_index = pmd.face_vertex_list.face_vert_index.Select(x => (uint)x).ToArray();
     return(result);
 }
	private static PMXFormat.FaceVertexList ConvertFaceVertexList(PMDFormat pmd) {
		PMXFormat.FaceVertexList result = new PMXFormat.FaceVertexList();
		result.face_vert_index = pmd.face_vertex_list.face_vert_index.Select(x=>(uint)x).ToArray();
		return result;
	}