Changeset 18251


Ignore:
Timestamp:
07/16/14 16:09:57 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_elementstype.m

    r18076 r18251  
    1717subplot(width,width,i);
    1818
     19plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options);
     20return;
    1921if is2d
    20         %None elements
    2122        posNONE=find(data==0);
    2223        A=elements(posNONE,1); B=elements(posNONE,2); C=elements(posNONE,3);
    2324        p1=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',0,'FaceColor','flat','EdgeColor',edgecolor);
    24         %SIA elements
    2525        posH=find(data==1);
    2626        A=elements(posH,1); B=elements(posH,2); C=elements(posH,3);
    2727        p2=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',1,'FaceColor','flat','EdgeColor',edgecolor);
    28         %SSA element
    2928        posM=find(data==2);
    3029        A=elements(posM,1); B=elements(posM,2); C=elements(posM,3);
    31         p3=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',2,'FaceColor','flat','EdgeColor',edgecolor);
    32         %L1L2 element
    3330        posM=find(data==3);
    3431        A=elements(posM,1); B=elements(posM,2); C=elements(posM,3);
    3532        p4=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',2,'FaceColor','flat','EdgeColor',edgecolor);
    36         %HO element
    3733        posP=find(data==4);
    3834        A=elements(posP,1); B=elements(posP,2); C=elements(posP,3);
    3935        p5=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',3,'FaceColor','flat','EdgeColor',edgecolor);
    40         %FS elements
    4136        posS=find(data==5);
    4237        A=elements(posS,1); B=elements(posS,2); C=elements(posS,3);
    4338        p6=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',4,'FaceColor','flat','EdgeColor',edgecolor);
    44         %SSAHO element
    4539        posMP=find(data==6);
    4640        A=elements(posMP,1); B=elements(posMP,2); C=elements(posMP,3);
    4741        p7=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',5,'FaceColor','flat','EdgeColor',edgecolor);
    48         %HOFS elements
    4942        posPS=find(data==7);
    5043        A=elements(posPS,1); B=elements(posPS,2); C=elements(posPS,3);
    5144        p8=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',7,'FaceColor','flat','EdgeColor',edgecolor);
    52         %SSAFS elements
    5345        posMS=find(data==8);
    5446        A=elements(posMS,1); B=elements(posMS,2); C=elements(posMS,3);
    5547        p9=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',6,'FaceColor','flat','EdgeColor',edgecolor);
    56 
    5748else
    58         %None elements
    5949        PosNONE=find(data==0);
    6050        A=elements(PosNONE,1); B=elements(PosNONE,2); C=elements(PosNONE,3); D=elements(PosNONE,4); E=elements(PosNONE,5); F=elements(PosNONE,6);
     
    6454        patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', 0,'FaceColor','flat','EdgeColor',edgecolor);
    6555        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', 0,'FaceColor','flat','EdgeColor',edgecolor);
    66         %SIA elements
    6756        posH=find(data==1);
    6857        A=elements(posH,1); B=elements(posH,2); C=elements(posH,3); D=elements(posH,4); E=elements(posH,5); F=elements(posH,6);
     
    7261        patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', 1,'FaceColor','flat','EdgeColor',edgecolor);
    7362        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', 1,'FaceColor','flat','EdgeColor',edgecolor);
    74         %SSA elements
    7563        posM=find(data==2);
    7664        A=elements(posM,1); B=elements(posM,2); C=elements(posM,3); D=elements(posM,4); E=elements(posM,5); F=elements(posM,6);
     
    8068        patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', 2,'FaceColor','flat','EdgeColor',edgecolor);
    8169        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', 2,'FaceColor','flat','EdgeColor',edgecolor);
    82         %L1L2 elements
    8370        posP=find(data==3);
    8471        A=elements(posP,1); B=elements(posP,2); C=elements(posP,3); D=elements(posP,4); E=elements(posP,5); F=elements(posP,6);
     
    8875        patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', 3,'FaceColor','flat','EdgeColor',edgecolor);
    8976        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', 3,'FaceColor','flat','EdgeColor',edgecolor);
    90         %HO elements
    9177        posP=find(data==3);
    9278        A=elements(posP,1); B=elements(posP,2); C=elements(posP,3); D=elements(posP,4); E=elements(posP,5); F=elements(posP,6);
     
    9682        patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', 3,'FaceColor','flat','EdgeColor',edgecolor);
    9783        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', 3,'FaceColor','flat','EdgeColor',edgecolor);
    98         %FS elements
    9984        posS=find(data==4);
    10085        A=elements(posS,1); B=elements(posS,2); C=elements(posS,3); D=elements(posS,4); E=elements(posS,5); F=elements(posS,6);
     
    10489        patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', 4,'FaceColor','flat','EdgeColor',edgecolor);
    10590        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', 4,'FaceColor','flat','EdgeColor',edgecolor);
    106         %SSAHO elements
    10791        posP=find(data==5);
    10892        A=elements(posP,1); B=elements(posP,2); C=elements(posP,3); D=elements(posP,4); E=elements(posP,5); F=elements(posP,6);
     
    120104        patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', 7,'FaceColor','flat','EdgeColor',edgecolor);
    121105        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', 7,'FaceColor','flat','EdgeColor',edgecolor);
    122         %SSAFS elements
    123106        PosMS=find(data==6);
    124107        A=elements(PosMS,1); B=elements(PosMS,2); C=elements(PosMS,3); D=elements(PosMS,4); E=elements(PosMS,5); F=elements(PosMS,6);
Note: See TracChangeset for help on using the changeset viewer.