%% Size of 2-D Triangulation
% Create a 2-D 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];

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

TR = triangulation(C,P)

%
% Get the size of the connectivity list. The triangulation has 4 triangles, and each triangle has 3 vertices.

size(TR)

%
% Copyright 2012 The MathWorks, Inc.