ifcplusplus icon indicating copy to clipboard operation
ifcplusplus copied to clipboard

Fixed notation instead of scientific

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

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 [email protected] on 7 Jan 2015 at 3:54

GoogleCodeExporter avatar Apr 01 '15 13:04 GoogleCodeExporter

Ok, I will add the line, thanks for the hint :)

Original comment by [email protected] on 7 Jan 2015 at 11:03

  • Added labels: ****
  • Removed labels: ****

GoogleCodeExporter avatar Apr 01 '15 13:04 GoogleCodeExporter