added moshfeghi method for closest distance with restriction to facenormal direction
fixed comparing squared distances to plain distances in pt_triplane