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:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user