code: def translate(self, input_entity, vector):
          
          d = {1: "Line", 2: "Surface", 3: "Volume"}
          self._GMSH_CODE.append(
              "Translate {{{}}} {{ {}{{{}}}; }}".format(
                  ", ".join([str(co) for co in vector]),
                  d[input_entity.dimension],
                  input_entity.id,
              )
          )
          return
docs: Translates input_entity itself by vector.
  
          Changes the input object.