@pimms.value<EOL><INDENT>def visual_meshes(tess, visual_coordinates, cleaned_visual_areas):<DEDENT>
visual_areas = cleaned_visual_areas<EOL>def _make_submesh(area_label):<EOL><INDENT>def _fn():<EOL><INDENT>idx = np.where(visual_areas == area_label)[<NUM_LIT:0>]<EOL>st = tess.subtess(idx)<EOL>return st.make_mesh(visual_coordinates[:, st.labels]).persist()<EOL><DEDENT>return _fn<EOL><DEDENT>return pimms.lazy_map({k:_make_submesh(k) for k in np.unique(visual_areas) if k != <NUM_LIT:0>})<EOL>
mdl.visual_meshes is a map of meshes; the keys of the map are the unique visual area id's
in the given retinotopy mesh model (mdl) and the values are the meshes that represent them.