ifcplusplus icon indicating copy to clipboard operation
ifcplusplus copied to clipboard

Geometric context precision attribute

Open claimred opened this issue 5 years ago • 0 comments

  • 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 appendRealWithoutTrailingZeros function 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?

claimred avatar Apr 15 '20 20:04 claimred