Improved expand code, to go in many directions  from each point and to exclude any expanded points that are close to the mesh