Page 1 of 1

Boolean Mesh Manipulation

Posted: Mon Jan 17, 2011 12:11 am
by Blue Hampster
Hey there, recently, I have been getting back into irrlicht, the real C++ one, not the .net wrapped one. Have discovered so many more features. Anyway, I was wondering if anyone knew any Mesh Manipulation techniques that could be used to do an A subtract B boolean function between two meshes to remove where they intersect. If anyone knows how it can be done, that would be absolutely great.

no

Posted: Mon Jan 17, 2011 3:01 am
by REDDemon
a 3d modeling program like blender is more suitable for you. making an algorithm that do booloean operation on meshes can be hard. irrlicht doesn't support that feature. you have to write your own function that access to 2 different mesh buffers.

Posted: Mon Jan 17, 2011 10:26 am
by bitplane
To do boolean operations on meshes you'd need actual solids, but Irrlicht deals in triangle lists only. You'd need your own loaders and to hold the meshes in a solid geometry format, then to convert to triangle lists when you want to render them.

Posted: Wed Jan 19, 2011 9:31 pm
by Blue Hampster
ah, didn't realize that's how it worked outside of 3d modelling programs. I am working on a way to append the triangles of a second object that intersect with the first object.

Where they occupy the same space, the triangles are removed from the first completely, and the intersecting triangles are inserted from the second object during collision