fixed order of segement color in distance mesh.