How would I make a custom CSG system?

For more information on this, I want a system that can perform boolean operations on meshes(editable meshes), Example; cutting a cube mesh out of another cube mesh. Similar to roblox’s built in CSG / Union system for parts.


bfe72445275052360428457e78749e6e19bf7a13


Trying to find good information on this has been difficult, anything that can help guide me in the right direction would be appreciated

I found this article with good visuals and a psuedo algorithm. Good luck.

If it is complicated perhaps you can start with 2d and look at this resource.

1 Like