Changeset 5133


Ignore:
Timestamp:
08/10/10 15:59:55 (15 years ago)
Author:
seroussi
Message:

MacAyealPattynApproximation in plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/plot/plot_elementstype.m

    r5126 r5133  
    3232        A=elements(posH,1); B=elements(posH,2); C=elements(posH,3);
    3333        p3=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',PattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
     34        %MacAyealPattyn element
     35        posH=find(data(:,1)==MacAyealPattynApproximationEnum);
     36        A=elements(posH,1); B=elements(posH,2); C=elements(posH,3);
     37        p5=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',MacAyealPattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    3438        %Stokes elements
    3539        alpha=0.35;
     
    4044        %       legend([p1 p2 p3 p4],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','Stokes''s elements');
    4145        else
    42                 legend([p1 p2 p3],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements');
     46                legend([p1 p2 p3 p5],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','MacAyealPattyn''s elements');
    4347        end
    4448else
     
    6771        patch( 'Faces', [B E F C ], 'Vertices', [x y z],'CData', PattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    6872        patch( 'Faces', [C A D F ], 'Vertices', [x y z],'CData', PattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
     73        %MacAyealPattyn elements
     74        posP=find(data(:,1)==MacAyealPattynApproximationEnum);
     75        A=elements(posP,1); B=elements(posP,2); C=elements(posP,3); D=elements(posP,4); E=elements(posP,5); F=elements(posP,6);
     76        p5=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', MacAyealPattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
     77        patch( 'Faces', [D E F], 'Vertices', [x y z],'CData', MacAyealPattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
     78        patch( 'Faces', [A B E D], 'Vertices', [x y z],'CData', MacAyealPattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
     79        patch( 'Faces', [B E F C ], 'Vertices', [x y z],'CData', MacAyealPattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
     80        patch( 'Faces', [C A D F ], 'Vertices', [x y z],'CData', MacAyealPattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    6981        %Stokes elements
    7082        alpha=0.35;
     
    7789                patch( 'Faces', [B E F C ], 'Vertices', [x y z],'FaceColor','none','EdgeColor','black');
    7890                patch( 'Faces', [C A D F ], 'Vertices', [x y z],'FaceColor','none','EdgeColor','black');
    79                 legend([p1 p2 p3 p4],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','Stokes''s elements');
     91                legend([p1 p2 p3 p5 p4],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','MacAyealPattyn''s elements','Stokes''s elements');
    8092        else
    81                 legend([p1 p2 p3],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements');
     93                legend([p1 p2 p3 p5],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','MacAyealPattyn''s elements');
    8294        end
    8395end
Note: See TracChangeset for help on using the changeset viewer.