First i have multiple surfaces! I triangulate this surfaces into triangles and then from triangles, i extracted the three vertices. Then i used this verticies to calculate normal and want to export to text file. The text file should be two (one: for triangle normals and second: for range label). Well the code is very large starting from beginning and i used some other libraries also.
But my specific problem is to write the two text files!
Here i will explain it by example!
say i have many triangles of an object, i want to write their normal and corresponding label (which shows the region based on x-value of the triangle)
Now the code should look like as follow!
for (int i=1; i<=Numberoftriagles, i++)
// calculation of normal
out1<< trianglenormal ;
out2 << "2";
out2 << "3";
I tried the above code! It works! I could create two separate text files which is not organized