|
@@ -146,6 +146,7 @@ StepExporter::StepExporter(const aiScene* pScene, IOSystem* pIOSystem, const std
|
|
|
|
|
|
// make sure that all formatting happens using the standard, C locale and not the user's current locale
|
|
// make sure that all formatting happens using the standard, C locale and not the user's current locale
|
|
mOutput.imbue( std::locale("C") );
|
|
mOutput.imbue( std::locale("C") );
|
|
|
|
+ mOutput.precision(16);
|
|
|
|
|
|
// start writing
|
|
// start writing
|
|
WriteFile();
|
|
WriteFile();
|
|
@@ -158,7 +159,9 @@ void StepExporter::WriteFile()
|
|
// see http://shodhganga.inflibnet.ac.in:8080/jspui/bitstream/10603/14116/11/11_chapter%203.pdf
|
|
// see http://shodhganga.inflibnet.ac.in:8080/jspui/bitstream/10603/14116/11/11_chapter%203.pdf
|
|
// note, that all realnumber values must be comma separated in x files
|
|
// note, that all realnumber values must be comma separated in x files
|
|
mOutput.setf(std::ios::fixed);
|
|
mOutput.setf(std::ios::fixed);
|
|
- mOutput.precision(16); // precission for double
|
|
|
|
|
|
+ // precission for double
|
|
|
|
+ // see http://stackoverflow.com/questions/554063/how-do-i-print-a-double-value-with-full-precision-using-cout
|
|
|
|
+ mOutput.precision(16);
|
|
|
|
|
|
// standard color
|
|
// standard color
|
|
aiColor4D fColor;
|
|
aiColor4D fColor;
|
|
@@ -365,4 +368,3 @@ void StepExporter::WriteFile()
|
|
|
|
|
|
#endif
|
|
#endif
|
|
#endif
|
|
#endif
|
|
-
|
|
|