IfcConvert --precision option.

Sets the decimal precision to be used to format floating-point values, 15 by default.
Use a negative value to use the system's default precision (should be 6 typically).
Applicable for OBJ and DAE output. For DAE output, value >= 15 means that up to 16 decimals are used,
and any other value means that 6 or 7 decimals are used.
This commit is contained in:
Stinkfist0
2017-01-11 16:36:33 +02:00
committed by Thomas Krijnen
parent 2d58a1bc7c
commit ecff54c480
5 changed files with 36 additions and 15 deletions
+6 -2
View File
@@ -39,9 +39,13 @@ public:
: GeometrySerializer(settings)
, mtl_filename(mtl_filename)
, obj_stream(obj_filename.c_str())
, mtl_stream(mtl_filename.c_str())
, mtl_stream(mtl_filename.c_str())
, vcount_total(1)
{}
{
obj_stream << std::setprecision(settings.precision);
mtl_stream << std::setprecision(settings.precision);
}
virtual ~WaveFrontOBJSerializer() {}
bool ready();
void writeHeader();