extracted marching cube algorithm for shapes
testing surface