monkey2
monkey2 copied to clipboard
mojo3d resquest: Constructive solid geometry
Some CSG methods for mojo3d models would be awesome. It would allow us to create our own level editors more easily.
I'm sure you know what CSG is, but here's a Wiki link anyways: https://en.wikipedia.org/wiki/Constructive_solid_geometry
Mark: Ctrl-F 'csg' here, there's some really cool B3D code (with a BMX port) that does this...
http://mojolabs.nz/codearcs.php?cat=12
In fact, just found that someone's 'fixed' code I did in bmx-ng/OpenB3D, years ago (just added operator overloading for adding/subtracting entire meshes to the existing CSG port because it seemed cool), probably better still...
https://github.com/markcwm/openb3dmax.mod/commit/712e3288c52693823a442d0ccbbadd0b49998776