www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/Circumcentersin2DTriangulationExample.m
%% Circumcenters in 2-D Triangulation % Copyright 2015 The MathWorks, Inc. %% % Load 2-D triangulation data and create a triangulation representation. load trimesh2d TR = triangulation(tri,x,y); %% % Compute the circumcenters. CC = circumcenter(TR); triplot(TR) axis([-100 400 -50 350]) hold on plot(CC(:,1),CC(:,2),'*r') hold off %% % The circumcenters represent points on the medial axis of the polygon.