Changeset 425 for trunk/src/update_obj.m
- Timestamp:
- May 17, 2012, 10:55:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/update_obj.m
r379 r425 25 25 %plot uvmat 26 26 for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_1 27 27 hobject=[]; 28 28 if isfield(Object_out{iobj},'DisplayHandle_uvmat') && ~isempty(Object_out{iobj}.DisplayHandle_uvmat) && ishandle(Object_out{iobj}.DisplayHandle_uvmat) 29 29 hobject=Object_out{iobj}.DisplayHandle_uvmat;%graphic handle of object #iobj in the uvmat plot 30 30 end 31 Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation of Object_out{iobj} on Object_out{IndexObj_1} 31 if ~isequal(iobj,IndexObj_1)% object not visible when projected on itself 32 Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation of Object_out{iobj} on Object_out{IndexObj_1} 33 if isempty(Object_out{iobj}.DisplayHandle_uvmat)&&~isempty(hobject) 34 delete(hobject) 35 end 36 end 32 37 end 33 38 % plot view_field
Note: See TracChangeset
for help on using the changeset viewer.