fopen_s(&pFile, "House.nfg", "r+"); for (;i < 100;++i) { fscanf_s(pFile, " %*d. pos:[%f, %f, %f]; norm:[%*f, %*f, %*f]; binorm:[%*f, %*f, %*f]; tgt:[%*f, %*f, %*f]; uv:[%f, %f];", &verticesData[i].pos.x, &verticesData[i].pos.y, &verticesData[i].pos.z, &verticesData[i].uv.x, &verticesData[i].uv.y); ++i; }
text format in the file NrVertices: 170
0. pos:[-881.551086, -0.000000, 955.795349]; norm:[0.000000, 0.000000, 1.000000]; binorm:[0.000000, 1.000000, 0.000000]; tgt:[1.000000, 0.000000, 0.000000]; uv:[0.014965, 0.006930]; 1. pos:[763.035583, -0.000000, 955.795349]; norm:[0.000000, 0.000000, 1.000000]; binorm:[0.000000, 1.000000, 0.000000]; tgt:[1.000000, 0.000000, 0.000000]; uv:[0.529346, 0.006930];