So… I solved it…
Apparently, the little bubble spots were areas where my ‘extra’ (partial voxel) was 0, and so it was putting a 0 volume voxel (thus a bubble) at those spots.
You might wonder… why were you not checking the value of ‘extra’ to make sure it was > 0 ?
Well… I thought I was. I had the statement …
if extra then
instead of
if extra > 0 then
Apparently, this was returning true even when the value was 0
This shows the importance of being specific with your code, I would suggest ALWAYS keeping these type of statements, and the ‘not’ statement for use with Boolean values ONLY.
I need to get in the habit of checking for the actual value or lack of value, even nil.