Changeset 403
- Timestamp:
- Apr 29, 2012, 11:35:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r402 r403 234 234 %% refresh projection plane 235 235 UvData.Object{1}.ProjMode='projection';%main plotting plane 236 set(handles.ListObject,'Value',1)% default: empty projection object 236 set(handles.ListObject,'Value',1)% default: empty projection objectproj_field 237 237 set(handles.ListObject,'String',{''}) 238 238 set(handles.Fields,'Value',1) … … 2479 2479 for imap=1:numel(IndexObj) 2480 2480 iobj=IndexObj(imap); 2481 if iobj==1 && ~isfield(UvData.Object{iobj},'Type')% case with no projection (only for the first empty object)2482 ord=10^(floor(log10(UvData.Field.Mesh)));%order of magnitude2483 if UvData.Field.Mesh/ord>=52484 mesh=5*ord;2485 elseif UvData.Field.Mesh/ord>=22486 mesh=2*ord;2487 else2488 mesh=ord;2489 end2490 coord_x=UvData.Field.XMin:mesh:UvData.Field.XMax;2491 coord_y=UvData.Field.YMin:mesh:UvData.Field.YMax;2492 [XI,YI]=meshgrid(coord_x,coord_y);2493 XI=reshape(XI,[],1);2494 YI=reshape(YI,[],1);2495 [ObjectData,errormsg]=calc_field({FieldName},UvData.Field,[XI YI]);2496 else2481 % if iobj==1 && ~isfield(UvData.Object{iobj},'Type')% case with no projection (only for the first empty object) 2482 % ord=10^(floor(log10(UvData.Field.Mesh)));%order of magnitude 2483 % if UvData.Field.Mesh/ord>=5 2484 % mesh=5*ord; 2485 % elseif UvData.Field.Mesh/ord>=2 2486 % mesh=2*ord; 2487 % else 2488 % mesh=ord; 2489 % end 2490 % coord_x=UvData.Field.XMin:mesh:UvData.Field.XMax; 2491 % coord_y=UvData.Field.YMin:mesh:UvData.Field.YMax; 2492 % [XI,YI]=meshgrid(coord_x,coord_y); 2493 % XI=reshape(XI,[],1); 2494 % YI=reshape(YI,[],1); 2495 % [ObjectData,errormsg]=calc_field({FieldName},UvData.Field,[XI YI]); 2496 % else 2497 2497 [ObjectData,errormsg]=proj_field(UvData.Field,UvData.Object{iobj});% project field on the object 2498 end2498 % end 2499 2499 if ~isempty(errormsg) 2500 2500 return
Note: See TracChangeset
for help on using the changeset viewer.