OCC bug? Unexpected intersection while cuting spheres in a box
Hello, I have been working with OCC though gmsh in python to make a box filled with spherical holes. Everything was working as expected until I let the spheres cut some of the outside faces of the box.
My problem is in micrometers, so I used all the dimensions of the order of 1e-6. Althought I know it is better to work at order 1 scale and then re-scale it, everything was working fine for me.
I have been able to reproduce the behavour with the code attached example_gmsh.py. In there you can find the variable scale_factor, which can be seen as the units of the problem, and if the code is run with scale_factor = 1
the final structure is the one I expected:
But if the real scale of the problem is used, this is scale_factor = 1e-6
this is the result:
As you can see one of the cuts it is correctly made, but the other one instead it is the intersection between the box and the sphere. I have debugged gmsh but as it is only a wrapper for OCC in this case, so, I suspect it is more a OCC issue.
From know I am creating the structure with scale_factor = 1
and using the property: gmsh.option.setNumber("Mesh.ScalingFactor", 1e-6)
, which I guess it is the transformation I am looking for.
Thank you.
Clara