Silence most readers/writers

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1053 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2014-05-09 12:44:18 +00:00
parent 0295f4a7d8
commit 5104bf5c42
7 changed files with 10 additions and 39 deletions

View File

@@ -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;

View File

@@ -173,8 +173,6 @@ bool _OMWriter_::write_binary(std::ostream& _os, BaseExporter& _be,
Enabler<mostream> 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;

View File

@@ -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;