@pimms.value<EOL><INDENT>def surfaces(surface_coordinates, properties, tess, chirality):<DEDENT>
def _make_mesh(name):<EOL><INDENT>def _lambda():<EOL><INDENT>val = surface_coordinates[name]<EOL>if isinstance(val, geo.Mesh): val = val.coordinates<EOL>m = geo.Mesh(tess, val, properties=properties, meta_data={'<STR_LIT>':chirality})<EOL>return m.persist()<EOL><DEDENT>return _lambda<EOL><DEDENT>return pimms.lazy_map({k:_make_mesh(k) for k in six.iterkeys(surface_coordinates)})<EOL>
cortex.surfaces is a mapping of the surfaces of the given cortex; this must include the
surfaces 'white' and 'pial'.