@pimms.value<EOL><INDENT>def estimated_signed_distances(estimated_distances, contained_faces, surface):<DEDENT>
fs = surface.tess.index(np.unique(contained_faces))<EOL>mlt = np.ones(surface.vertex_count, dtype=np.int)<EOL>mlt[fs] = -<NUM_LIT:1><EOL>if is_topo(surface):<EOL><INDENT>return pimms.lazy_map(<EOL>{k:curry(lambda k: estimated_distances[k]*mlt, k)<EOL>for k in six.iterkeys(estimated_distances)})<EOL><DEDENT>else: return estimated_distances * mlt<EOL>
path.estimated_distances is a vector of estimated distance values from the given path. The
distance estimates are upper bounds on the actual distance but are not exact.