Another optimization is to check visibility _before_ the conversion from ldr to obj.
For example, studs which are covered by non-transparent bricks which are built on top of them
need not to be exported to the result mesh.
For example, if you build a wall for a house from bricks, none of the studs would be visible in most usecases.
For example, what jumps to my mind is implementing a big lookup table (probably, best, a hashmap) which tells
"if I put THIS brick in THIS position onto THAT brick, then THESE studs can be left away".
For example, studs which are covered by non-transparent bricks which are built on top of them
need not to be exported to the result mesh.
For example, if you build a wall for a house from bricks, none of the studs would be visible in most usecases.
For example, what jumps to my mind is implementing a big lookup table (probably, best, a hashmap) which tells
"if I put THIS brick in THIS position onto THAT brick, then THESE studs can be left away".