亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? polygoncutter.asv

?? 自己編寫的 matlab gui 可以實現任意多邊形定點參數輸入 然后使用Sutherland_Hodgeman等算法進行多邊形被矩形截取的演示程序
?? ASV
字號:
function varargout = Polygoncutter(varargin)
% POLYGONCUTTER M-file for Polygoncutter.fig
%      POLYGONCUTTER, by itself, creates a new POLYGONCUTTER or raises the existing
%      singleton*.
%
%      H = POLYGONCUTTER returns the handle to a new POLYGONCUTTER or the handle to
%      the existing singleton*.
%
%      POLYGONCUTTER('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in POLYGONCUTTER.M with the given input arguments.
%
%      POLYGONCUTTER('Property','Value',...) creates a new POLYGONCUTTER or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Polygoncutter_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Polygoncutter_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help Polygoncutter

% Last Modified by GUIDE v2.5 09-Nov-2007 21:07:00

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Polygoncutter_OpeningFcn, ...
                   'gui_OutputFcn',  @Polygoncutter_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before Polygoncutter is made visible.
function Polygoncutter_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to Polygoncutter (see VARARGIN)
zonepoint=str2num(get(handles.zonepointedit,'string'));
x=zonepoint(1);
y=zonepoint(2);
p=str2num(get(handles.polypointedit,'string'));
pp=[p;p(1,:)];
plot(pp(:,1),pp(:,2),'b');hold on;
plot([0 0 x x 0],[0 y y 0 0],'r');hold on;
grid on;


% Choose default command line output for Polygoncutter
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes Polygoncutter wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = Polygoncutter_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;



function zonepointedit_Callback(hObject, eventdata, handles)
% hObject    handle to zonepointedit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of zonepointedit as text
%        str2double(get(hObject,'String')) returns contents of zonepointedit as a double


% --- Executes during object creation, after setting all properties.
function zonepointedit_CreateFcn(hObject, eventdata, handles)
% hObject    handle to zonepointedit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function polypointedit_Callback(hObject, eventdata, handles)
% hObject    handle to polypointedit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of polypointedit as text
%        str2double(get(hObject,'String')) returns contents of polypointedit as a double


% --- Executes during object creation, after setting all properties.
function polypointedit_CreateFcn(hObject, eventdata, handles)
% hObject    handle to polypointedit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on button press in exe.
function exe_Callback(hObject, eventdata, handles)
% hObject    handle to exe (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
h=findobj('color','b');
delete(h);
h=findobj('color','m');
delete(h);
h=findobj('color','g');
delete(h);

zonepoint=str2num(get(handles.zonepointedit,'string'));
x=zonepoint(1);
y=zonepoint(2);
p=str2num(get(handles.polypointedit,'string'));
[row,len]=size(p);
p=reshape(p,(row*len/2),2);
pp=[p;p(1,:)];
plot(pp(:,1),pp(:,2),'b');hold on;
plot([0 0 x x 0],[0 y y 0 0],'r');hold on;
grid on;

error=0.0001;
[n,dim]=size(p);

j=1;
i=str2num(get(handles.edgechange,'string'));
for k=1:n+1
    bit2and=2^(i-1);
    temp(k)=getzonecode(zonepoint,pp(k,:));  %get the all the point's code grouped by 1st line
    code(k)=bitand(temp(k),bit2and);
end
    
for k=1:n
    judge1=bitand(code(k),code(k+1));
    if judge1~=0     %this line is totally unvisible,record no points
    else
        if code(k)==0&&code(k+1)==0   %this line is totally visible,keep the terminal point
        output(j,:)=pp(k+1,:);
        j=j+1;
        
        elseif code(k)==0&&code(k+1)~=0   %this line has only p1 in area while p2 outside
        sectpoint=intersectp(pp(k,:),pp(k+1,:),zonepoint,error,bit2and,0);
        output(j,:)=sectpoint;
        j=j+1;
            
        else %this line has only p2 in area while p1 outside
        sectpoint=intersectp(pp(k,:),pp(k+1,:),zonepoint,error,bit2and,1);
        output(j,:)=sectpoint;
        j=j+1;
        output(j,:)=pp(k+1,:);
        j=j+1;
        end
    end
end
output=[output;output(1,:)];
[row,len]=size(output);
polypoint=reshape(output,1,row*len);
polystr=num2str(polypoint);
set(handles.polypointedit,'string',polystr);
plot(output(:,1),output(:,2),'m *');hold on;
plot(output(:,1),output(:,2),'g -.');hold on;
axis auto;
i=i+1;
set(handles.edgechange,'string',i);
if i==5
    set(handles.exe,'enable','off');
    
end

% --- Executes on button press in credit.
function credit_Callback(hObject, eventdata, handles)
% hObject    handle to credit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
set(handles.zonepointedit,'string','10 10');
set(handles.polypointedit,'string','5 15;15 10;5 -5;-2 5');
delete(get(handles.axes,'children'));
set(handles.exe,'enable','on');
set(handles.edgechange,'string','1');




function edgechange_Callback(hObject, eventdata, handles)
% hObject    handle to edgechange (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edgechange as text
%        str2double(get(hObject,'String')) returns contents of edgechange as a double


% --- Executes during object creation, after setting all properties.
function edgechange_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edgechange (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end





function saver_Callback(hObject, eventdata, handles)
% hObject    handle to saver (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of saver as text
%        str2double(get(hObject,'String')) returns contents of saver as a double


% --- Executes during object creation, after setting all properties.
function saver_CreateFcn(hObject, eventdata, handles)
% hObject    handle to saver (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人听书哪个软件好| 国产黄色成人av| av在线不卡网| 日韩一卡二卡三卡| 亚洲精品欧美专区| 国产成人精品一区二区三区网站观看| 欧美日本在线一区| 亚洲桃色在线一区| 国产精品一区二区久久不卡| 欧美日韩中文精品| 中文字幕亚洲成人| 国产乱码精品1区2区3区| 宅男噜噜噜66一区二区66| 亚洲人精品一区| 国产91综合网| 欧美精品一区二区三区久久久| 亚洲午夜激情网页| 91在线精品一区二区| 国产欧美一区二区精品性色 | 欧美日韩综合色| 日韩一区欧美一区| 国产成人av一区二区三区在线| 日韩女优制服丝袜电影| 丝袜诱惑制服诱惑色一区在线观看 | 久久久久久久网| 美腿丝袜一区二区三区| 欧美精品在线观看一区二区| 夜夜嗨av一区二区三区四季av| 成人av资源在线观看| 国产亚洲一区二区三区| 国产在线精品一区二区夜色| 欧美成人欧美edvon| 免费久久精品视频| 欧美日韩成人一区二区| 亚洲国产精品久久久男人的天堂| 色综合久久天天| 日韩理论片网站| 97精品电影院| 亚洲啪啪综合av一区二区三区| 成人av资源在线观看| 国产精品久久久久一区二区三区共 | 久久理论电影网| 激情丁香综合五月| 久久久蜜臀国产一区二区| 国产在线播放一区二区三区| 久久综合狠狠综合久久综合88 | 日韩极品在线观看| 4438x亚洲最大成人网| 日本aⅴ亚洲精品中文乱码| 91精品国产欧美一区二区| 日本成人在线网站| 欧美电影免费观看高清完整版在 | 奇米精品一区二区三区四区| 日韩一区二区电影在线| 久久99在线观看| 久久久久久久国产精品影院| 国产suv精品一区二区三区| 亚洲国产高清aⅴ视频| 成人伦理片在线| 亚洲精品久久久蜜桃| 欧美日韩综合色| 久久精品99久久久| 国产性天天综合网| 91蜜桃在线免费视频| 亚洲成人自拍一区| 日韩欧美一级精品久久| 国产成人免费视频精品含羞草妖精| 亚洲国产精品黑人久久久| aaa国产一区| 亚洲福利视频一区二区| 日韩视频在线你懂得| 国产精品一二三区| 亚洲图片另类小说| 欧美日韩国产综合一区二区| 久久不见久久见免费视频7 | 在线精品视频一区二区| 日韩av电影免费观看高清完整版 | 椎名由奈av一区二区三区| 91久久国产最好的精华液| 日本亚洲视频在线| 久久久国产午夜精品| 99久久综合精品| 婷婷综合另类小说色区| 久久久久国产精品免费免费搜索| 不卡视频免费播放| 亚洲成a人片综合在线| 日韩一区和二区| 成人视屏免费看| 亚洲成人综合网站| 国产欧美一区二区三区鸳鸯浴| 欧美自拍偷拍午夜视频| 日韩电影网1区2区| 国产精品视频一二| 欧美丰满美乳xxx高潮www| 国产成人小视频| 亚洲成人1区2区| 国产女主播一区| 欧美日本韩国一区| 成人黄色电影在线| 日韩国产精品久久| 国产精品家庭影院| 日韩视频永久免费| 91在线观看视频| 国产在线不卡一区| 亚洲成精国产精品女| 欧美国产97人人爽人人喊| 欧美顶级少妇做爰| 99视频超级精品| 激情综合色播五月| 亚洲第一综合色| 国产精品入口麻豆九色| 日韩欧美一区电影| 91国产免费观看| 丰满少妇久久久久久久| 日产欧产美韩系列久久99| 亚洲免费在线视频| 国产女主播视频一区二区| 欧美美女一区二区三区| 99免费精品在线| 国产伦精品一区二区三区免费| 亚洲成人三级小说| 1024成人网| 国产色91在线| 日韩久久免费av| 欧美日韩精品电影| 一本到一区二区三区| 国产成人aaaa| 激情文学综合网| 免费看精品久久片| 午夜精品福利在线| 亚洲精品日日夜夜| 中文字幕日韩精品一区| 久久久精品综合| 精品成人私密视频| 日韩亚洲欧美在线| 欧美精品一级二级三级| 日本二三区不卡| 91麻豆精品秘密| av在线这里只有精品| 国产91精品一区二区麻豆网站| 九九九精品视频| 麻豆成人免费电影| 日韩精品亚洲一区| 性感美女久久精品| 亚洲福中文字幕伊人影院| 亚洲精品国产高清久久伦理二区| 国产精品乱码久久久久久| 久久精子c满五个校花| 精品久久久久一区二区国产| 日韩午夜激情视频| 日韩一级大片在线| 91精品国产综合久久精品| 欧美日韩国产高清一区二区| 欧美色综合影院| 欧美日韩一区二区三区在线看| 欧美性生交片4| 欧美性猛片aaaaaaa做受| 欧洲精品视频在线观看| 欧美天堂亚洲电影院在线播放| 欧美午夜片在线看| 欧美日韩一区二区在线观看| 欧美日韩一级片在线观看| 欧美三级电影网| 欧美久久久久久久久| 欧美一区二区久久| 日韩欧美电影一区| 精品国产3级a| 国产日韩欧美精品一区| 中文字幕国产一区| 综合电影一区二区三区| 亚洲伦理在线免费看| 亚洲一区二区四区蜜桃| 午夜精品福利在线| 奇米一区二区三区| 国内精品久久久久影院薰衣草| 国产在线日韩欧美| 风间由美一区二区三区在线观看| 懂色av中文一区二区三区| 99国产精品久久久久久久久久 | 蜜桃精品视频在线| 狠狠v欧美v日韩v亚洲ⅴ| 国产高清视频一区| 99精品久久久久久| 欧美日韩一区三区| 欧美v日韩v国产v| 国产精品视频看| 一区二区三区精品在线| 日韩精品欧美成人高清一区二区| 久久99深爱久久99精品| 成人激情开心网| 欧美日韩午夜精品| 26uuu国产电影一区二区| 国产精品青草久久| 一区二区欧美国产| 理论电影国产精品| 成人综合在线网站| 欧美日韩一区二区三区四区五区 | 欧美日韩激情一区| 精品国产成人在线影院| 中文字幕亚洲在|