Separated marchig cubes algorithm from surface drawing