@pimms.value<EOL><INDENT>def closed(addresses, surface):<DEDENT>
faces = address_data(addresses)[<NUM_LIT:0>]<EOL>if faces is None: return None<EOL>(f1,f2) = faces.T[[-<NUM_LIT:1>,<NUM_LIT:0>]]<EOL>ol = len(np.unique([f1,f2]))<EOL>return (ol == <NUM_LIT:3>)<EOL>
path.closed is True if, for the given path, the first and last points of the path are in
the same face; otherwise, it is False. Empty curves are considered open, but are given a
value of None. Note that a path of 1 point is considered closed, as is any path that lies
entirely inside of a triangle.