Topological design for antenna pattern shaping