function plot_mesh_with_map(vertex,face,IDX_Model_1,map)

color_1=zeros(size(IDX_Model_1,1),3);
for j=1:size(map,1)
    if(sum(IDX_Model_1==j)>0)
        color_1(IDX_Model_1==j,:)=repmat(map(j,:),sum(IDX_Model_1==j),1);
    end
end

figure;
clf;
options.face_vertex_color=color_1;
plot_mesh(vertex,face,options);
hold off;
colormap(hsv);
shading interp;
axis tight;

end