bugfix: correct scaling of --debug-boxes

This commit is contained in:
Sebastian Held 2010-10-11 21:03:34 +02:00
parent c1250ce34d
commit 16e0e2f3f2

View File

@ -249,6 +249,15 @@ void Processing::DumpBox2File( string vtkfilenameprefix, bool dualMesh ) const
}
}
// rescale coordinates
#ifndef OUTPUT_IN_DRAWINGUNITS
double scaling = Op->GetGridDelta();
for (int i=0; i<3; i++) {
s1[i] *= scaling;
s2[i] *= scaling;
}
#endif
file << "# vtk DataFile Version 2.0" << endl;
file << "" << endl;
file << "ASCII" << endl;