// Discussion: // // This example simply creates and saves a mesh. // // Location: // // http://people.sc.fsu.edu/~jburkardt/freefem_src/mesh_write/mesh_write.edp // // Licensing: // // This code is distributed under the MIT license. // // Modified: // // 19 June 2015 // // Author: // // John Burkardt // // Reference: // // Frederic Hecht, // Freefem++, // Third Edition, version 3.22 // cout << "\n"; cout << "mesh_write\n"; cout << " FreeFem++ version\n"; cout << " Define a mesh, and write it to a file.\n"; border C ( t = 0, 2 * pi ) { x = cos ( t ); y = sin ( t ); label = 1; } // // Define Th, the triangulation of the "left" side of the boundaries. // int n = 10; mesh Th = buildmesh ( C ( n ) ); // // Plot the mesh. // plot ( Th, ps = "mesh_write_mesh.ps" ); // // Save the mesh file. // savemesh ( Th, "mesh_write_mesh.msh" ); // // Terminate. // cout << "\n"; cout << "mesh_write:\n"; cout << " Normal end of execution.\n"; exit ( 0 );