Color interpolation after changing a specific valu

hello everyone,

I am using LabView for doing color interpolation between vertices, it does the linear interpolation and i don’t have any problem , the problem starts when i want to choose a specific point, lets say my click point on the 3d picture give a specific color (Red) and now i want the other vertices be interpolated regarding to this specific point. Does anyone have an idea about this?! any algorithm or any similar experience no matter in which language will help me.