Support filling through fillDistanceArray