Adding geometry to production rules