Just sad this error lasted so long
Got the marching cubes working, slow but it works