Random vertices are not on cube boundaries.
Boundary test fails only if isosurface vertices are deeper than 1 in the grid.