Only two samples are allowed in mesh.