Changeset 81 for trunk/src/set_object.m


Ignore:
Timestamp:
Apr 13, 2010, 10:37:08 AM (14 years ago)
Author:
sommeria
Message:

several bug repairs:
option movie backward introduced for uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r79 r81  
    7676% Choose default command line output for set_object
    7777handles.output = hObject;
    78 
     78'TESTsetobj'
     79data
    7980% Update handles structure
    8081guidata(hObject, handles);
     
    138139            CoordCell=data.Coord;
    139140            data.Coord=zeros(numel(CoordCell),3);
     141            data.Coord(:,3)=zeros(numel(CoordCell),1); % z component set to 0 by default
    140142            for iline=1:numel(CoordCell)
    141                 data.Coord(iline,:)=str2num(CoordCell{iline});
     143                line_vec=str2num(CoordCell{iline});
     144                if numel(line_vec)==2
     145                    data.Coord(iline,1:2)=str2num(CoordCell{iline});
     146                else
     147                    data.Coord(iline,:)=str2num(CoordCell{iline});
     148                end
    142149            end
    143150        end
Note: See TracChangeset for help on using the changeset viewer.