code: def setType(self, polygonID, polygonType):
          
          self._connection._beginMessage(
              tc.CMD_SET_POLYGON_VARIABLE, tc.VAR_TYPE, polygonID, 1 + 4 + len(polygonType))
          self._connection._packString(polygonType)
          self._connection._sendExact()
docs: setType(string, string) -> None
  
          Sets the (abstract) type of the polygon.