how to use boolean operation between two solids? Do you have a better algorithms in CAD?

Thank you!!

You may want to search with the term “constructive solid geometry” (CSG), that will turn up lots of info on the topic. Otherwise, could you be a bit more specific in your question, I’m not really sure what you are asking for?

can the “constructive solid geometry” (CSG) algorithm save lots of info about two solid ?

If so, how should I do?

You may want to search with the term “constructive solid geometry” (CSG), that will turn up lots of info on the topic. Otherwise, could you be a bit more specific in your question, I’m not really sure what you are asking for?

Can the “constructive solid geometry” (CSG) save lots of boundary info about the two solid?

If so, how shoud I do?

Thank you !!

Do you want to render the intersection or difference between two volumes, or calculate it? If it’s the former, you can use the stencil buffer (that’s what it’s for). If it’s the latter, then you’re talking about a software algorithm which has nothing to do with OpenGL.