function v = triangle_to_vertex ( t )

%*****************************************************************************80
%
%% triangle_to_vertex() converts a polyiamond from triangle list to vertex list.
%
%  Discussion:
%
%    The triangle list is a list of the IJK parallelogram triangles
%    that constitute the polyiamond.
%    If k = 0, the "ijk" triangle has vertices
%      (i-1,j-1), (i,j-1), (i-1,j).
%    If k = 1, the "ijk" triangle has vertices
%      (i,j), (i-1,j), (i,j-1).
%
%    The vertex list of a polyiamond gives the IJ coordinates of the
%    polygonal vertices, in counterclockwise order.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 October 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer T(TN,3), the IJK parallelogram triangle coordinates of the 
%    triangles making up the polyiamond. 
%
%  Output:
%
%    integer V(VN,2), the IJ coordinates of the triangle nodes that are
%    the vertices of the polyiamond-.
%
  e = triangle_to_edge ( t );
  v = edge_to_vertex ( e );

  return
end

