(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

        i = 0
        n_points = 0
        with open(self.infile, 'r') as input_file:
            for line in input_file:
                n_points += 1
            mesh_points = np.zeros(shape=(n_points, 3))

        with open(self.infile, 'r') as input_file:
            
            i = 0
            for line in input_file:
                numbers = line.split() #[n1 p x y z] -> [x y z]
                del numbers[0:2] 

                j = 0
                for number in numbers:

                    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 i = 0 n_points = 0 with open ( self . infile , 'r' ) as input_file : for line in input_file : n_points += 1 mesh_points = np . zeros ( shape = ( n_points , 3 ) ) with open ( self . infile , 'r' ) as input_file : i = 0 for line in input_file : numbers = line . split ( ) #[n1 p x y z] -> [x y z] del numbers [ 0 : 2 ] j = 0 for number in numbers : mesh_points [ i ] [ j ] = float ( number ) j += 1 i += 1 return mesh_points