Changeset 7292


Ignore:
Timestamp:
02/03/11 10:25:08 (14 years ago)
Author:
Mathieu Morlighem
Message:

Handle 3d models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/plot/plot_section.m

    r6631 r7292  
    2929options=removefield(options,'colormap',0); %back to default colormap
    3030
     31%replug x and y onto model so that SectionValue treats the problem correctly
     32md3d=md;
     33if exist(options,'layer')
     34        md.x=md.x2d; md.y=md.y2d; md.elements=md.elements2d; md.dim=2;
     35end
     36
    3137%Loop over number of curves
    3238for i=1:numcurves,
    3339
    34         [datai datatype]=processdata(md,data(:,i),options);
    35 
    36         %replug x and y onto model so that SectionValue treats the problem correctly
    37         if exist(options,'layer')
    38                 md.x=md.x2d; md.y=md.y2d; md.elements=md.elements2d; md.dim=2;
    39         end
     40        [datai datatype]=processdata(md3d,data(:,i),options);
    4041
    4142        %resolution
Note: See TracChangeset for help on using the changeset viewer.