What is the appropriate kernel/epsilon for CSG on inaccurate (float innaccuarcies) meshes?
I haven't found answers using google, so maybe cgal-discuss has some ideas on how I can proceed:
I am using CGAL to compute CSG boolean operations with OFF meshes using mostly the example code using Nef_polyhedron. My input meshes use xyz-float coordinates and I cannot change this, unfortunately.
CSG works great if I can pre-process meshes, i.e. round all points to a certain precision to avoid floating-point inaccuracies that come from my meshes.
However, in some cases, I cannot do this rounding, as that would make things worse. Consider this example:
I want to union the orange mesh with the blue mesh. With floats as coordinates, I can position the orange mesh onto the blue mesh, but whether the red points of the orange mesh are on/inside the blue mesh, depend on the accuracy on the translation math done before and might or might not be true for the given float xyz-values. Rounding point positions might make things worse, as the red points might be extra-far away of the blue surface after rounding than before.
So: Is there a kernel or a way to tell CGAL to use epsilon-distances here? As in "I know my accuracy might work up to 4 digits after comma, but please ignore everything more fine-granular and use epsilon math, as in: consider the red points to be connected with the blue surface even if there might be a distance of 0.00000001"