function plotSolution( filename )

fid = fopen( filename );

[ N ] = fscanf(fid,'%d\n',1);

A = zeros( N, 9 );

for i = 1:N
    
    [ s ] = fscanf( fid, ' %f ', [1, 9 ] );
    
    A(i,:) = s;
    
end;

fclose( fid );

for i=1:N
    
    x = [ A(i,1); A(i,3); A(i,5); ];
    y = [ A(i,2); A(i,4); A(i,6); ];
    
    val = [ A(i,7); A(i,8); A(i,9); ];
    
    patch( x, y, val );
    
end;
