Commit be970cb7 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'OBJ_Writer_Fix' into 'master'

- Use Fixed as stream option in OBJ writer to avoid problems with other programs…

Closes #60

See merge request !199
parents a7072d3d 0ee735db
Pipeline #8052 passed with stages
in 63 minutes and 53 seconds
......@@ -28,6 +28,7 @@
<li>OM Writer/Reader: Update file format version to 2.0. Older files can still be read, but older OpenMesh versions cannot read new format.</li>
<li>OM Writer/Reader: Fixed inconsistent writing/reading of edge properties</li>
<li>OM Writer/Reader: Add option to store status</li>
<li>OBJ Writer: Use Fixed as stream option in OBJ writer to avoid problems with other programs reading scientific notation</li>
</ul>
<b>Tools</b>
......
......@@ -97,8 +97,12 @@ write(const std::string& _filename, BaseExporter& _be, Options _opt, std::stream
return false;
}
// Set precision on output stream. The default is set via IOManager and passed through to all writers.
out.precision(_precision);
// Set fixed output to avoid problems with programs not reading scientific notation correctly
out << std::fixed;
{
#if defined(WIN32)
std::string::size_type dot = _filename.find_last_of("\\/");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment