New approach to ensure patches are enclosing and non collinear. Atthis point the code works if the 4 nearest neighbours computed by rangesearch are enclosing and noncollinear. Next need to make it work to find proper patches.