add geometry rect/line and calc the connection points