www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/Sizeof2DTriangulationExample.m

    %% Size of 2-D Triangulation  

%% 
% Create a triangulation. 
P = [ 2.5    8.0
      6.5    8.0
      2.5    5.0
      6.5    5.0
      1.0    6.5
      8.0    6.5];

T = [5  3  1;
     3  2  1;
     3  4  2;
     4  6  2];

TR = triangulation(T,P);  

%% 
% Get the size of the connectivity list. 
size(TR) 

%%
% The triangulation has 4 triangles, and each triangle has 3 vertices.