Marching cubes errors

Looks like you might be missing the last vertex when building your triangle mesh. You are probably looping through a set of positions. Are you sure you didn’t do a for loop with less than instead of less or equal to?