I am trying to loop through a vector to check the values against the actual file. At this point I know that they work because I have checked them as they were being read in and I have checked them individually, but when I check all of them at the same time it doesn't work. To clarify 'they' are points, and when I check each point individually it works fine, but when I check them all at the same time I get incorrect values. Here is the code I am using, the second point is commented out on purpose.
Code:
for(int j = 0; j < mnumbrushes; j++){
//currentplane is really now the number of planes because we have already read them all in from the file
for(int i = 0; i < BrushVector[j].currentplane; i++) {
cout << "Plane number: " << i << " of brush number " << j << endl;
cout << "X value p1: " << BrushVector[j].PlaneVector[i].p1.x << endl;
cout << "Y value p1: " << BrushVector[j].PlaneVector[i].p1.y << endl;
cout << "Z value p1: " << BrushVector[j].PlaneVector[i].p1.z << endl;
// cout << "X value p2: " << BrushVector[j].PlaneVector[i].p2.x << endl;
// cout << "y value p2: " << BrushVector[j].PlaneVector[i].p2.y << endl;
// cout << "z value p2: " << BrushVector[j].PlaneVector[i].p2.z << endl;
cout << "X value p3: " << BrushVector[j].PlaneVector[i].p3.x << endl;
cout << "y value p3: " << BrushVector[j].PlaneVector[i].p3.y << endl;
cout << "z value p3: " << BrushVector[j].PlaneVector[i].p3.z << endl;
} //PLANE
//BRUSH
} //FUNCTION
any advice will be appreciated