There was a bug in the CSG code where the updated Meshes were not being refreshed on a secondary call to .regenerate( ). This has been fixed in b07112015, available on SourceForge.
Dima - your code is just fine and should now work. It was strictly a problem inside CSG. Your sample makes a nice demo of how CSG is supposed to work. Please contact me if you need anything else. I will also be monitoring this thread from now on.
Ogli - thanks for pointing Dima to my code and for referencing me so that I saw the problem. I would love to have more people exercising the code and reporting problems back to me. The SourceForge ticket system is the best way to get my attention.
I have no Android test environment so I have never tried it.
It is all just Java, but I do not know what kind of constraints Android imposes.
CSG is about the Mesh construction with nothing special about Rendering. So
long as Android can deal with standard Meshes, I would hope it would all work.
Let me know about any results you get with Android, good or bad, and I will
include it in my documentation.
I’m had NoClassDefFoundError when i create CSGGeometry and CSGShape objects. I think problem is in gradle generated JME3 Libs. Your libs i connect native.