fast marching sampling script