4 #include <OpenMesh/Core/IO/MeshIO.hh>
5 #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
7 #include "smooth_algo.hh"
12 #ifndef DOXY_IGNORE_THIS
26 int main(
int argc,
char **argv)
34 std::cerr <<
"Usage: " << argv[0] <<
" #iterations infile outfile\n";
42 std::cerr <<
"Error: Cannot read mesh from " << argv[2] << std::endl;
48 SmootherT<MyMesh> smoother(mesh);
49 smoother.smooth(atoi(argv[1]));
55 std::cerr <<
"Error: cannot write mesh to " << argv[3] << std::endl;
bool read_mesh(Mesh &_mesh, const std::string &_filename)
Read a mesh from file _filename.
Add storage for previous halfedge (halfedges). The bit is set by default in the DefaultTraits.
bool write_mesh(const Mesh &_mesh, const std::string &_filename, Options _opt=Options::Default, std::streamsize _precision=6)
Write a mesh to the file _filename.