function t = edge_to_triangle ( e )

%*****************************************************************************80
%
%% edge_to_triangle() converts a polyiamond description from edge to triangle.
%
%  Discussion:
%
%    The edge list contains the sequence of parallelogram IJ coordinates
%    of the nodes that lie on the boundary of the polyiamond, listed
%    in counterclockwise order.
%
%    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).
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 October 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer E(EN,2), the IJ parallelogram point coordinates of the
%    nodes that lie on the boundary of the polyiamond.
%
%  Output:
%
%    integer T(TN,3): the (I,J,K) parallelogram triangle coordinates
%    of the triangles that form the hexiamond.
%
  v = edge_to_vertex ( e );
  t = vertex_to_triangle ( v );

  return
end

