blitz-research / monkey2

zlib License
129 stars 42 forks source link

mojo3d resquest: Constructive solid geometry #429

Open Hezkore opened 5 years ago

Hezkore commented 5 years ago

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

DruggedBunny commented 5 years ago

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