Changeset 5133
- Timestamp:
- 08/10/10 15:59:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_elementstype.m
r5126 r5133 32 32 A=elements(posH,1); B=elements(posH,2); C=elements(posH,3); 33 33 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); 34 38 %Stokes elements 35 39 alpha=0.35; … … 40 44 % legend([p1 p2 p3 p4],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','Stokes''s elements'); 41 45 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'); 43 47 end 44 48 else … … 67 71 patch( 'Faces', [B E F C ], 'Vertices', [x y z],'CData', PattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor); 68 72 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); 69 81 %Stokes elements 70 82 alpha=0.35; … … 77 89 patch( 'Faces', [B E F C ], 'Vertices', [x y z],'FaceColor','none','EdgeColor','black'); 78 90 patch( 'Faces', [C A D F ], 'Vertices', [x y z],'FaceColor','none','EdgeColor','black'); 79 legend([p1 p2 p3 p 4],'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'); 80 92 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'); 82 94 end 83 95 end
Note:
See TracChangeset
for help on using the changeset viewer.