debugged 3d flow_dir_at_point