Thanks for the elaborations. I am new to FreeCAD and I now understand where the problem comes from.
Hannu wrote: ↑Sat Feb 22, 2020 8:06 am
That is a 7.3 ‰ (per mille) difference; should we expect a "perfect" measurement?
Perhaps my background in computer graphics is not appropriate here but in my conception, a bounding box contains the object completely. Of course, a 'perfect' bounding box would be one that coincides with the extremal points of the shape. I would not expect something like this.
BUT:
It's one thing for a bounding box to be too big and 'inefficient' but in my opinion, it is horribly wrong for the bounding box to be too small.
In my code, I generate points on the surface of the shape and then find out that they do not lie inside the bounding box?!
At least up to numeric precision (i.e., in the range of 1e-6), this should be the case. 7.3e-3 is 1000x times above this.
openBrain wrote: ↑Sat Feb 22, 2020 9:47 am
FreeCAD shapes are BREP and so BoundBox may vary depending on tessellation settings (this is especially true on curved objects).
I see. Is there a function that provides a conservative bounding box (i.e., a bounding box that might be too big but at least contains the object for sure)?