function p = hexiamond_triangle_ijk ( index )

%*****************************************************************************80
%
%% hexiamond_triangle_ijk: the IJK triangles forming a hexiamond.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 September 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer INDEX, a value between 1 and 12.
%
%  Output:
%
%    integer P(6,3): the (I,J,K) parallelogram triangle coordinates
%    of the 6 triangles that form the hexiamond.
%

%
%  bat/chevron
% 
 if ( index == 1 )
    p = [ ... 
      1, 1, 0; ...
      1, 1, 1; ...
      2, 1, 0; ...
      2, 1, 1; ...
      2, 2, 0; ...
      2, 2, 1 ];
%
%  butterfly
%
  elseif ( index == 2 )
    p = [ ... 
      2, 1, 0; ...
      2, 1, 1; ...
      3, 1, 0; ...
      1, 2, 1; ...
      2, 2, 0; ...
      2, 2, 1];
%
%  club/crook
%
  elseif ( index == 3 )
    p = [ ... 
      1, 1, 1; ...
      2, 1, 0; ...
      2, 1, 1; ...
      3, 1, 0; ...
      3, 1, 1; ...
      1, 2, 0 ];
%
%  crown
%
  elseif ( index == 4 )
    p = [ ... 
      1, 1, 1; ...
      2, 1, 0; ...
      2, 1, 1; ...
      3, 1, 0; ...
      3, 1, 1; ...
      2, 2, 0 ];
%
%  hexagon
%
  elseif ( index == 5 )
    p = [ ... 
      1, 1, 1; ...
      2, 1, 0; ...
      2, 1, 1; ...
      1, 2, 0; ...
      1, 2, 1; ...
      2, 2, 0 ];
%
%  lobster
%
  elseif ( index == 6 )
    p = [ ... 
      1, 1, 1; ...
      1, 2, 1; ...
      1, 2, 0; ...
      2, 1, 1; ...
      2, 2, 0; ...
      1, 3, 0 ];
%
%  pistol/signpost
%
  elseif ( index == 7 )
    p = [ ... 
      1, 1, 1; ...
      1, 2, 0; ...
      1, 2, 1; ...
      2, 2, 0; ...
      2, 2, 1; ...
      1, 3, 0 ];
%
%  rhomboid/bar
%
  elseif ( index == 8 )
    p = [ ... 
      1, 1, 0; ...
      1, 1, 1; ...
      2, 1, 0; ...
      2, 1, 1; ...
      3, 1, 0; ...
      3, 1, 1 ];
%
%  shoe/hook
%
  elseif ( index == 9 )
    p = [ ... 
      1, 1, 0; ...
      1, 1, 1; ...
      1, 2, 1; ...
      1, 2, 0; ...
      2, 2, 0; ...
      2, 1, 1 ];
%
%  snake
%
  elseif ( index == 10 )
    p = [ ... 
      1, 1, 1; ...
      1, 2, 0; ...
      1, 2, 1; ...
      2, 2, 0; ...
      2, 2, 1; ...
      2, 3, 0 ];
%
%  sphinx
%
  elseif ( index == 11 )
    p = [ ... 
      1, 1, 0; ...
      1, 1, 1; ...
      2, 1, 0; ...
      2, 1, 1; ...
      3, 1, 0; ...
      1, 2, 0 ];
%
%  yacht
%
  elseif ( index == 12 )
    p = [ ... 
      1, 1, 0; ...
      1, 1, 1; ...
      2, 1, 0; ...
      2, 1, 1; ...
      1, 2, 0; ...
      2, 2, 0 ];
  else
    p = [];
  end

  return
end

