#NEWLINE# def setVertex( self , index , value ) : #NEWLINE# #INDENT# '\n        Set a vertex to the corresponding value.\n\n        :param index: the index of the vertex to assign a value.\n        :type index: :class:`int`\n\n        :param value: the value to assign to the vertex.\n        :type value: :class:`numpy.ndarray`\n        ' #NEWLINE# Parameter . checkIndex ( index , 0 , self . V . shape [ 0 ] ) #NEWLINE# Parameter . checkClass ( value , numpy . ndarray ) #NEWLINE# if ( value . shape [ 0 ] != self . V . shape [ 1 ] ) : #NEWLINE# #INDENT# raise ValueError ( ( 'All vertices must be arrays of length ' + str ( self . V . shape [ 1 ] ) ) ) #NEWLINE# #UNINDENT# self . V [ self , : ] = value