Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opengl boolean subtraction

Is it possible to do Boolean operations between polygons?

I want to do a figure like this in OpenGL and I thinking of doing it with a sphere and four subtractions with four smaller spheres.

enter image description here

like image 266
Jorge Vega Sánchez Avatar asked Aug 12 '26 08:08

Jorge Vega Sánchez


1 Answers

No, that's not possible with just OpenGL.
OpenGL is a very low level API. it allows you to display polygons and that's about it.

What you're describing is usually done in the application level above OpenGL.
Look at the bottom of this article for some references on libraries that does that:

http://en.wikipedia.org/wiki/Boolean_operations_on_polygons

like image 129
shoosh Avatar answered Aug 15 '26 07:08

shoosh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!