Pretty numbers
Hi all,
I'm asking about this here in case the feature I'm looking for already exists, if not I'll request it on Github.
Blender creates 'imprecise' numbers, for example if I create a mesh node at x=100 in the .ifc I get 99.9999940395355. This is a blender issue not bonsai and it makes an .ifc file harder to read.
If I manually change 99.9999940395355 to 100.00 the file loads fine and when saved again 100.00 becomes 100. so I know that bonsai is completely happy with my change and not letting blender reintroduce the imprecision. Is there a feature in bonsai already to do this tidy up? As blender moves/creates a node sanitise the returned data? There's nothing in the bonsai settings but maybe it can be done manually in the settings file?
I know the imprecision is insignificant in the real world, it just tweaks my OCD having all these ugly numbers and having software that's not doing precisely what I told it to do.




Comments
I am also interested how to best deal with that ....
https://community.osarch.org/discussion/3073/accuracy-number-precision-in-blender-bonsai
Feature requested. #7473
Ah yes, the bane of the architects; completely irrelevant, but those "eyeballed" numbers really mess with the metaphorical "OCD" .
For this very reason I created some years ago a free addon called Transform Quantizer that can, among other uses, round property values to the closest integer or an arbitrary user definable precision threshold.

It is purely Blender based, has nothing specifically made for Bonsai, but can operate on object transforms (position, rotation coordinates) and in Edit Mode for Mesh objects and Bezier curves. Meshes and curves are probably not very relevant for Bonsai context, but at least the object position quantizing should be useful, while mesh quantization in edit mode may still be somewhat helpful for mesh based profile editing.
Mind you, it doesn't really solve the underlying issue of lack of precision for 32bit floats, but it can fix minor fluctuations caused by operator calculations, or accumulated errors, that still fit within the native precision threshold. It can quantize independently for each XYZ axis, and respects locked axis components.
Haven't tested it specifically with IFC objects in Bonsai, but it should work fine. If if doesn't, let me know and I'll try to adjust to the best of my abilities.