function sphere_imp_gridfaces_3d_test ( )

%*****************************************************************************80
%
%% sphere_imp_gridfaces_3d_test() tests sphere_imp_gridfaces_3d().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 May 2005
%
%  Author:
%
%    John Burkardt
%
  maxtri = 1000;

  nlat = 3;
  nlong = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'sphere_imp_gridfaces_3d_test():\n' );
  fprintf ( 1, '  sphere_imp_gridfaces_3d() computes gridfaces\n' );
  fprintf ( 1, '  on a sphere in 3D.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of intermediate latitudes is %d\n', nlat );
  fprintf ( 1, '  Number of longitudes is %d\n', nlong );

  [ ntri, tri ] = sphere_imp_gridfaces_3d ( maxtri, nlat, nlong );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  The number of triangles is %d\n', ntri );

  i4mat_transpose_print ( 3, ntri, tri, '  Triangle vertices:' );

  return
end
