Changeset 8115 for issm/trunk
- Timestamp:
- 05/03/11 07:42:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/plot_elementstype.m
r8106 r8115 23 23 p1=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',HutterApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 24 24 %MacAyeal element 25 pos H=find(data==MacAyealApproximationEnum);26 A=elements(pos H,1); B=elements(posH,2); C=elements(posH,3);25 posM=find(data==MacAyealApproximationEnum); 26 A=elements(posM,1); B=elements(posM,2); C=elements(posM,3); 27 27 p2=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',MacAyealApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 28 28 %Pattyn element 29 pos H=find(data==PattynApproximationEnum);30 A=elements(pos H,1); B=elements(posH,2); C=elements(posH,3);29 posP=find(data==PattynApproximationEnum); 30 A=elements(posP,1); B=elements(posP,2); C=elements(posP,3); 31 31 p3=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',PattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 32 32 %MacAyealPattyn element 33 pos H=find(data==MacAyealPattynApproximationEnum);34 A=elements(pos H,1); B=elements(posH,2); C=elements(posH,3);33 posMP=find(data==MacAyealPattynApproximationEnum); 34 A=elements(posMP,1); B=elements(posMP,2); C=elements(posMP,3); 35 35 p5=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',MacAyealPattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 36 36 %Stokes elements … … 50 50 A=elements(posNONE,1); B=elements(posNONE,2); C=elements(posNONE,3); 51 51 p9=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',NoneApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 52 legend([p1 p2 p3 p5 p6 p7 p8 p9],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','MacAyealPattyn''s elements','Stokes''s elements','MacAyealStokes''s elements','PattynStokes''s elements','No element'); 52 53 legend([p1 p2 p3 p5 p6 p7 p8 p9],... 54 'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements',... 55 'MacAyealPattyn''s elements','Stokes''s elements','MacAyealStokes''s elements','PattynStokes''s elements','None element'); 53 56 54 57 else … … 78 81 patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', PattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 79 82 %Stokes elements 80 save data data81 83 posS=find(data==StokesApproximationEnum); 82 84 A=elements(posS,1); B=elements(posS,2); C=elements(posS,3); D=elements(posS,4); E=elements(posS,5); F=elements(posS,6); … … 118 120 patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', NoneApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 119 121 patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', NoneApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 120 legend([p1 p2 p3 p4 p5 p6 p7 p8],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','Stokes''s elements','MacAyealPattyn''s elements','PattynStokes''s elements','MacAyealStokes''s elements','None elements'); 122 123 legend([p1 p2 p3 p4 p5 p6 p7 p8],... 124 'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','Stokes''s elements',... 125 'MacAyealPattyn''s elements','PattynStokes''s elements','MacAyealStokes''s elements','None elements'); 121 126 end 122 127
Note:
See TracChangeset
for help on using the changeset viewer.