Fix distance-to-surface calculationg for general plane surface.
Merge pull request #299 from paulromano/plane-distance-fix

Fix distance-to-surface calculation for general plane surface