(self, filename)
return mesh_points
Method to parse the `filename`. It returns a matrix with all
        the coordinates.

        :param string filename: name of the input file.
        
        :return: mesh_points: it is a `n_points`-by-3 matrix containing
            the coordinates of the points of the mesh
        :rtype: numpy.ndarray

        .. todo::

            - specify when it works
Method to parse the `filename`. It returns a matrix with all
        the coordinates.
Method to parse the filename . It returns a matrix with all the coordinates .
def parse(self, filename):
        """
        Method to parse the `filename`. It returns a matrix with all
        the coordinates.

        :param string filename: name of the input file.
        
        :return: mesh_points: it is a `n_points`-by-3 matrix containing
            the coordinates of the points of the mesh
        :rtype: numpy.ndarray

        .. todo::

            - specify when it works
        """
        self._check_filename_type(filename)
        self._check_extension(filename)

        self.infile = filename

        nrow = 0
        i = 0
        with open(self.infile, 'r') as input_file:
            for line in input_file:
                nrow += 1
                if nrow == 19:
                    n_points = int(line)
                    mesh_points = np.zeros(shape=(n_points, 3))
                if 20 < nrow < 21 + n_points:
                    line = line[line.index("(") + 1:line.rindex(")")]
                    j = 0
                    for number in line.split():
                        mesh_points[i][j] = float(number)
                        j += 1
                    i += 1

        return mesh_points
def parse ( self , filename ) : self . _check_filename_type ( filename ) self . _check_extension ( filename ) self . infile = filename nrow = 0 i = 0 with open ( self . infile , 'r' ) as input_file : for line in input_file : nrow += 1 if nrow == 19 : n_points = int ( line ) mesh_points = np . zeros ( shape = ( n_points , 3 ) ) if 20 < nrow < 21 + n_points : line = line [ line . index ( "(" ) + 1 : line . rindex ( ")" ) ] j = 0 for number in line . split ( ) : mesh_points [ i ] [ j ] = float ( number ) j += 1 i += 1 return mesh_points