I'm getting very peculiar results from my marching cubes based surface generator within unity and figured this must be a pretty common problem that has been solved already, so I thought I would extract this out as a tiny example project that only includes the broken generation code ...
... if you download and run the example you should get something like this ...
... so my question is:
How can I resolve the logic in the marching cubes meshing code to generate a complete mesh with consistent uv mappings all the way around?
If someone can solve this I will edit the sample in this question with the solution so others can download this solution in the future.
So I figured out what was causing the vertex generation issue, it looks like paul burkes lookup tables however result in some cases returning the vertex data in different orders to others which appears to be the cause of this uv issue (see image, updated)
I have updated the sample project too, anyone fancy debugging the marching cubes tri table?, something tells me this will be a long winded task!