Esempio n. 1
0
    private static void test02(string node_file_name, string triangle_file_name)

    //****************************************************************************80
    //
    //  Purpose:
    //
    //    TEST02 tests TRI_SURFACE_READ.
    //
    //  Licensing:
    //
    //    This code is distributed under the GNU LGPL license.
    //
    //  Modified:
    //
    //    28 September 2008
    //
    //  Author:
    //
    //    John Burkardt
    //
    {
        int dim_num  = 0;
        int node_num = 0;

        double[] node_xyz     = null;
        int      order_num    = 0;
        int      triangle_num = 0;

        int[] triangle_node = null;

        Console.WriteLine("");
        Console.WriteLine("TEST02");
        Console.WriteLine("  TRI_SURFACE_READ reads data from a TRI_SURFACE file.");

        TriSurface.tri_surface_size(node_file_name, triangle_file_name, ref dim_num, ref node_num,
                                    ref order_num, ref triangle_num);

        TriSurface.tri_surface_size_print(node_file_name, triangle_file_name, dim_num,
                                          node_num, order_num, triangle_num);

        TriSurface.tri_surface_read(node_file_name, triangle_file_name, dim_num, node_num,
                                    order_num, triangle_num, ref node_xyz, ref triangle_node);

        TriSurface.tri_surface_print(node_file_name, triangle_file_name, dim_num, node_num,
                                     order_num, triangle_num, node_xyz, triangle_node);
    }
Esempio n. 2
0
    private static void test01(string node_file_name, string triangle_file_name)

    //****************************************************************************80
    //
    //  Purpose:
    //
    //    TEST01 tests TRI_SURFACE_SIZE.
    //
    //  Licensing:
    //
    //    This code is distributed under the GNU LGPL license.
    //
    //  Modified:
    //
    //    28 September 2008
    //
    //  Author:
    //
    //    John Burkardt
    //
    {
        int dim_num      = 0;
        int node_num     = 0;
        int order_num    = 0;
        int triangle_num = 0;

        Console.WriteLine("");
        Console.WriteLine("TEST01");
        Console.WriteLine("  TRI_SURFACE_SIZE determines the size of various objects");
        Console.WriteLine("  in a TRI_SURFACE file.");

        TriSurface.tri_surface_size(node_file_name, triangle_file_name, ref dim_num, ref node_num,
                                    ref order_num, ref triangle_num);

        TriSurface.tri_surface_size_print(node_file_name, triangle_file_name, dim_num,
                                          node_num, order_num, triangle_num);
    }