ifcplusplus
ifcplusplus copied to clipboard
Geometric context precision attribute
- According to IFC implementation guide about Precision attribute in IfcGeometricRepresentationContext:
Value of the model precision for geometric models. It is a double value (REAL), typically in 1E-5 to 1E-8 range, that indicates the tolerance under which two given points are still assumed to be identical.
- However it seems impossible to use values lower than 1e-5 due to
appendRealWithoutTrailingZerosfunction behaviour. It finds a '00000' substring and deletes the whole value making it 0.
https://github.com/ifcquery/ifcplusplus/blob/master/IfcPlusPlus/src/ifcpp/writer/WriterUtil.cpp#L81
Is that a bug?