Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boolean Operations on Distant Meshes
#2
The Ab4d.SharpEngine uses float values for vertex coordinates. If you use very big float numbers with very small float numbers, then some floating-point inprecisions may produce invalid results.

Boolean operations do a lot of floating-point operations and this may be the reason for the problems.

I would need to have the exact code to reproduce this issue and then I could say if this is actually caused by floating point errors.

But if you say, that scaling the model down solves this issue, then this also indicates that this is the cause of the problems.


When you want to subtract the holes from a 3D box / cube, then you can also use the triangulater where you provide a 2D shape of the rectangle and then define the 2D shapes as holes in the rectangle. The Ab4d.SharpEngine.Utilities.Triangulator can be used to generate the triangles from that. Then you can use the MeshFactory.CreateExtrudedMesh to extrude the triangles to generate a 3D object.

See the "Advanced 3D models / Triangulates & Extruded Shape" sample and then select the "Rectangle with simple holes" or "Circle with circular holes" option. See screenshot:

   
Andrej Benedik
  


Messages In This Thread
RE: Boolean Operations on Distant Meshes - by abenedik - 09-22-2025, 01:38 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)