diff --git a/src/OpenMesh/Core/IO/reader/OBJReader.cc b/src/OpenMesh/Core/IO/reader/OBJReader.cc index b16aefed..c972f0df 100644 --- a/src/OpenMesh/Core/IO/reader/OBJReader.cc +++ b/src/OpenMesh/Core/IO/reader/OBJReader.cc @@ -265,8 +265,6 @@ bool _OBJReader_:: read(std::istream& _in, BaseImporter& _bi, Options& _opt) { - omlog() << "[OBJReader] : read file\n"; - std::string line; std::string keyWrd; @@ -322,7 +320,7 @@ read(std::istream& _in, BaseImporter& _bi, Options& _opt) matFile = path_ + matFile; - omlog() << "Load material file " << matFile << std::endl; + //omlog() << "Load material file " << matFile << std::endl; std::fstream matStream( matFile.c_str(), std::ios_base::in ); @@ -335,7 +333,7 @@ read(std::istream& _in, BaseImporter& _bi, Options& _opt) }else omerr() << " Warning! Material file '" << matFile << "' not found!\n"; - omlog() << " " << materials_.size() << " materials loaded.\n"; + //omlog() << " " << materials_.size() << " materials loaded.\n"; for ( MaterialList::iterator material = materials_.begin(); material != materials_.end(); ++material ) { diff --git a/src/OpenMesh/Core/IO/reader/OFFReader.cc b/src/OpenMesh/Core/IO/reader/OFFReader.cc index d2a4d772..a5676bc3 100644 --- a/src/OpenMesh/Core/IO/reader/OFFReader.cc +++ b/src/OpenMesh/Core/IO/reader/OFFReader.cc @@ -176,8 +176,6 @@ _OFFReader_::read_ascii(std::istream& _in, BaseImporter& _bi, Options& _opt) con { -omlog() << "[OFFReader] : read ascii file\n"; - unsigned int i, j, k, l, idx; unsigned int nV, nF, dummy; OpenMesh::Vec3f v, n; @@ -433,8 +431,6 @@ void _OFFReader_::readValue(std::istream& _in, unsigned int& _value) const{ bool _OFFReader_::read_binary(std::istream& _in, BaseImporter& _bi, Options& _opt, bool /*_swap*/) const { - omlog() << "[OFFReader] : read binary file\n"; - unsigned int i, j, k, l, idx; unsigned int nV, nF, dummy; OpenMesh::Vec3f v, n; diff --git a/src/OpenMesh/Core/IO/reader/PLYReader.cc b/src/OpenMesh/Core/IO/reader/PLYReader.cc index 65207d67..23be11d5 100644 --- a/src/OpenMesh/Core/IO/reader/PLYReader.cc +++ b/src/OpenMesh/Core/IO/reader/PLYReader.cc @@ -171,8 +171,6 @@ bool _PLYReader_::read(std::istream& _in, BaseImporter& _bi, Options& _opt) { bool _PLYReader_::read_ascii(std::istream& _in, BaseImporter& _bi, const Options& _opt) const { - omlog() << "[PLYReader] : read ascii file\n"; - // Reparse the header if (!can_u_read(_in)) { omerr() << "[PLYReader] : Unable to parse header\n"; @@ -322,8 +320,6 @@ bool _PLYReader_::read_ascii(std::istream& _in, BaseImporter& _bi, const Options bool _PLYReader_::read_binary(std::istream& _in, BaseImporter& _bi, bool /*_swap*/, const Options& _opt) const { - omlog() << "[PLYReader] : read binary file format\n"; - // Reparse the header if (!can_u_read(_in)) { omerr() << "[PLYReader] : Unable to parse header\n"; @@ -859,8 +855,6 @@ bool _PLYReader_::can_u_read(std::istream& _is) const { if (line != "PLY" && line != "ply") return false; - // omlog() << "PLY header found" << std::endl; - vertexCount_ = 0; faceCount_ = 0; vertexDimension_ = 0; @@ -907,7 +901,6 @@ bool _PLYReader_::can_u_read(std::istream& _is) const { if (keyword == "comment") { std::getline(_is, line); - omlog() << "PLY header comment : " << line << std::endl; } else if (keyword == "element") { _is >> elementName; if (elementName == "vertex") { diff --git a/src/OpenMesh/Core/IO/reader/STLReader.cc b/src/OpenMesh/Core/IO/reader/STLReader.cc index 58b3dfe7..9f47391b 100644 --- a/src/OpenMesh/Core/IO/reader/STLReader.cc +++ b/src/OpenMesh/Core/IO/reader/STLReader.cc @@ -206,8 +206,6 @@ bool _STLReader_:: read_stla(const std::string& _filename, BaseImporter& _bi, Options& _opt) const { - omlog() << "[STLReader] : read ascii file\n"; - std::fstream in( _filename.c_str(), std::ios_base::in ); if (!in) @@ -232,8 +230,6 @@ bool _STLReader_:: read_stla(std::istream& _in, BaseImporter& _bi, Options& _opt) const { - omlog() << "[STLReader] : read ascii stream\n"; - unsigned int i; OpenMesh::Vec3f v; @@ -342,8 +338,6 @@ bool _STLReader_:: read_stlb(const std::string& _filename, BaseImporter& _bi, Options& _opt) const { - omlog() << "[STLReader] : read binary file\n"; - std::fstream in( _filename.c_str(), std::ios_base::in | std::ios_base::binary); if (!in) @@ -368,8 +362,6 @@ bool _STLReader_:: read_stlb(std::istream& _in, BaseImporter& _bi, Options& _opt) const { - omlog() << "[STLReader] : read binary stream\n"; - char dummy[100]; bool swapFlag; unsigned int i, nT; diff --git a/src/OpenMesh/Core/IO/writer/OFFWriter.cc b/src/OpenMesh/Core/IO/writer/OFFWriter.cc index 69bdf4c0..f8473feb 100644 --- a/src/OpenMesh/Core/IO/writer/OFFWriter.cc +++ b/src/OpenMesh/Core/IO/writer/OFFWriter.cc @@ -175,8 +175,6 @@ bool _OFFWriter_:: write_ascii(std::ostream& _out, BaseExporter& _be, Options _opt) const { - omlog() << "[OFFWriter] : write ascii file\n"; - unsigned int i, nV, nF; Vec3f v, n; @@ -353,8 +351,6 @@ bool _OFFWriter_:: write_binary(std::ostream& _out, BaseExporter& _be, Options _opt) const { - omlog() << "[OFFWriter] : write binary file\n"; - unsigned int i, nV, nF; Vec3f v, n; diff --git a/src/OpenMesh/Core/IO/writer/OMWriter.cc b/src/OpenMesh/Core/IO/writer/OMWriter.cc index b9da1360..7cdd416a 100644 --- a/src/OpenMesh/Core/IO/writer/OMWriter.cc +++ b/src/OpenMesh/Core/IO/writer/OMWriter.cc @@ -173,8 +173,6 @@ bool _OMWriter_::write_binary(std::ostream& _os, BaseExporter& _be, Enabler enabler(omlog()); #endif - omlog() << "[OMWriter] : write binary file\n"; - size_t bytes = 0; bool swap = _opt.check(Options::Swap) || (Endian::local() == Endian::MSB); @@ -425,7 +423,7 @@ bool _OMWriter_::write_binary(std::ostream& _os, BaseExporter& _be, OMFormat::Chunk::Entity_Mesh, swap ); } - std::clog << "#bytes written: " << bytes << std::endl; + //std::clog << "#bytes written: " << bytes << std::endl; return true; } @@ -437,15 +435,15 @@ size_t _OMWriter_::store_binary_custom_chunk(std::ostream& _os, OMFormat::Chunk::Entity _entity, bool _swap) const { - omlog() << "Custom Property " << OMFormat::as_string(_entity) << " property [" - << _bp.name() << "]" << std::endl; + //omlog() << "Custom Property " << OMFormat::as_string(_entity) << " property [" + // << _bp.name() << "]" << std::endl; // Don't store if // 1. it is not persistent // 2. it's name is empty if ( !_bp.persistent() || _bp.name().empty() ) { - omlog() << " skipped\n"; + //omlog() << " skipped\n"; return 0; } @@ -474,13 +472,13 @@ size_t _OMWriter_::store_binary_custom_chunk(std::ostream& _os, // 3. block size bytes += store( _os, _bp.size_of(), OMFormat::Chunk::Integer_32, _swap ); - omlog() << " n_bytes = " << _bp.size_of() << std::endl; + //omlog() << " n_bytes = " << _bp.size_of() << std::endl; // 4. data { size_t b; bytes += ( b=_bp.store( _os, _swap ) ); - omlog() << " b = " << b << std::endl; + //omlog() << " b = " << b << std::endl; assert( b == _bp.size_of() ); } return bytes; diff --git a/src/OpenMesh/Core/IO/writer/PLYWriter.cc b/src/OpenMesh/Core/IO/writer/PLYWriter.cc index 9aa5e1eb..5f550492 100644 --- a/src/OpenMesh/Core/IO/writer/PLYWriter.cc +++ b/src/OpenMesh/Core/IO/writer/PLYWriter.cc @@ -231,8 +231,7 @@ bool _PLYWriter_:: write_ascii(std::ostream& _out, BaseExporter& _be, Options _opt) const { - omlog() << "[PLYWriter] : write ascii file\n"; - + unsigned int i, nV, nF; Vec3f v, n; OpenMesh::Vec3ui c; @@ -418,8 +417,7 @@ bool _PLYWriter_:: write_binary(std::ostream& _out, BaseExporter& _be, Options _opt) const { - omlog() << "[PLYWriter] : write binary file\n"; - + unsigned int i, nV, nF; Vec3f v, n; Vec2f t;