marching cube stuff for cube file render - work in progress