Marching cube: vertices generation can be done in multiple times