Fixed interpolation of ouside points, optimized updating geometry logic.