okb4 / ifcplusplus

Automatically exported from code.google.com/p/ifcplusplus
Other
1 stars 0 forks source link

Fixed notation instead of scientific #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When double/float values are written to the .ifc as scientific notation seems 
to upset a few IFC viewer. For instance, DDS-CAD viewer will throw an error and 
does not show anything. 

Could we please kindly use Fixed notation instead? 

Thanks :)

void IfcPPWriterSTEP::writeModelToStream( std::stringstream& stream, 
shared_ptr<IfcPPModel> model )
{
.
.
.

    stream << std::setprecision( 15 );
    stream << std::setiosflags( std::ios::showpoint );

       stream <<  std::fixed;            // Could we add this?
.
.
.

}

Original issue reported on code.google.com by sajlo...@gmail.com on 7 Jan 2015 at 3:54

GoogleCodeExporter commented 9 years ago
Ok, I will add the line, thanks for the hint :)

Original comment by fabian.g...@gmail.com on 7 Jan 2015 at 11:03