private static void test01(string filename) //****************************************************************************80 // // Purpose: // // TEST01 tests OBJ_SIZE. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 31 March 2011 // // Author: // // John Burkardt // { int face_num = 0; int node_num = 0; int normal_num = 0; int order_max = 0; Console.WriteLine(""); Console.WriteLine("TEST01"); Console.WriteLine(" OBJ_SIZE determines the size of various objects"); Console.WriteLine(" in an OBJ file."); WavefrontOBJ.obj_size(filename, ref node_num, ref face_num, ref normal_num, ref order_max); WavefrontOBJ.obj_size_print(filename, node_num, face_num, normal_num, order_max); }
private static void test02(string input_file_name) //****************************************************************************80 // // Purpose: // // TEST02 tests OBJ_READ. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 31 March 2011 // // Author: // // John Burkardt // { int face_num = 0; int node_num = 0; int normal_num = 0; int order_max = 0; Console.WriteLine(""); Console.WriteLine("TEST02"); Console.WriteLine(" OBJ_READ reads an object in an OBJ file."); WavefrontOBJ.obj_size(input_file_name, ref node_num, ref face_num, ref normal_num, ref order_max); int[] face_node = new int[order_max * face_num]; int[] face_order = new int[face_num]; double[] node_xyz = new double[3 * node_num]; double[] normal_vector = new double[3 * normal_num]; //obj_read ( input_file_name, node_num, face_num, normal_num, // order_max, node_xyz, face_order, face_node, normal_vector, vertex_normal ); WavefrontOBJ.obj_face_node_print(face_num, order_max, face_order, face_node); WavefrontOBJ.obj_normal_vector_print(normal_num, normal_vector); WavefrontOBJ.obj_node_xyz_print(node_num, node_xyz); }