Sync VTK formula with upstream