private static void test03(string input_file_name) //****************************************************************************80 // // Purpose: // // TEST03 tests STLA_READ. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 15 February 2007 // // Author: // // John Burkardt // { int face_num = 0; int node_num = 0; int solid_num = 0; int text_num = 0; STL_ASCII.STLData data = new(); Console.WriteLine(""); Console.WriteLine("TEST03"); Console.WriteLine(" STLA_READ reads an object in an ASCII STL file."); STL_ASCII.stla_size(input_file_name, ref solid_num, ref node_num, ref face_num, ref text_num); int[] face_node = new int[3 * face_num]; double[] face_normal = new double[3 * face_num]; double[] node_xyz = new double[3 * node_num]; bool error = STL_ASCII.stla_read(ref data, input_file_name, node_num, face_num, ref node_xyz, ref face_node, ref face_normal); switch (error) { case true: Console.WriteLine(""); Console.WriteLine(" STLA_READ returned error flag."); return; } STL_ASCII.stla_size_print(ref data, input_file_name, solid_num, node_num, face_num, text_num); STL_ASCII.stla_face_node_print(ref data, face_num, face_node); STL_ASCII.stla_face_normal_print(face_num, face_normal); STL_ASCII.stla_node_xyz_print(node_num, node_xyz); }
private static void test02(string input_file_name) //****************************************************************************80 // // Purpose: // // TEST02 tests STLA_SIZE. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 23 September 2005 // // Author: // // John Burkardt // { int face_num = 0; int node_num = 0; int solid_num = 0; int text_num = 0; STL_ASCII.STLData data = new(); Console.WriteLine(""); Console.WriteLine("TEST02"); Console.WriteLine(" STLA_SIZE determines the size of various objects"); Console.WriteLine(" in an ASCII STL file."); STL_ASCII.stla_size(input_file_name, ref solid_num, ref node_num, ref face_num, ref text_num); STL_ASCII.stla_size_print(ref data, input_file_name, solid_num, node_num, face_num, text_num); }