Changeset 1080 for trunk/src/plot_object.m
- Timestamp:
- Apr 17, 2020, 5:58:49 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_object.m
r1071 r1080 150 150 xline=[xline; ObjectData.Coord(1,1)];%closing the line 151 151 yline=[yline; ObjectData.Coord(1,2)]; 152 case {'plane',' plane_z','volume'}152 case {'plane','volume'} 153 153 if ~isfield(ObjectData,'Angle') 154 ObjectData.Angle=[0 0 ];155 end 156 cosphi=cos(ObjectData.Angle( 1)*pi/180);%angle in radians157 sinphi=sin(ObjectData.Angle( 1)*pi/180);%angle in radians154 ObjectData.Angle=[0 0 0]; 155 end 156 cosphi=cos(ObjectData.Angle(3)*pi/180);%angle in radians 157 sinphi=sin(ObjectData.Angle(3)*pi/180);%angle in radians 158 158 x0=xline(1); y0=yline(1); 159 159 xlim=get(haxes,'XLim'); … … 331 331 332 332 %% MODIFY AN EXISTING OBJECT PLOT 333 if test_newobj==0 ;333 if test_newobj==0 334 334 hh=hplot; 335 335 PlotData=get(hplot,'UserData'); … … 375 375 NbDeformPoint=length(PlotData.DeformPoint); 376 376 if NbDeformPoint>nbpoints% fpoints in excess on the graph 377 for ii=nbpoints+1:NbDeformPoint ;377 for ii=nbpoints+1:NbDeformPoint 378 378 if ishandle(PlotData.DeformPoint(ii)) 379 379 delete(PlotData.DeformPoint(ii)) … … 472 472 col,'LineStyle','none','Marker','.','Tag','DeformPoint','SelectionHighlight','off','UserData',hh); 473 473 end 474 case {'plane','volume' ,'plane_z'}474 case {'plane','volume'} 475 475 hh=line(xline,yline,'Color',col); 476 476 PlotData.SubObject(1)=line(xsup,ysup,'Color',col,'LineStyle',SubLineStyle,'Tag','proj_object');
Note: See TracChangeset
for help on using the changeset viewer.