diff --git a/Doc/changelog.docu b/Doc/changelog.docu index ba67ebc9..cdac2c44 100644 --- a/Doc/changelog.docu +++ b/Doc/changelog.docu @@ -53,6 +53,7 @@
  • ImporterT: Modified the add_face function of importerT to always return a valid FaceHandle
  • ImporterT: Return a valid FaceHandle when adding non-manifold faces.
  • BaseExporter: Added accessor functions for HalfEdgeHandles and faceTexCoords to base exporter and exporter template.
  • +
  • OBJ Writer: Fail if vertex color export was requested (Thanks to Manuel Massing)
  • OBJ Writer: Added functionality to store FaceTexCoords to objwriter
  • OBJ Writer: Applied fix for bad or missing vertex tex coords (Thanks to Gero Müller for the patch)
  • >
  • OBJ Writer: Fix vertex texture coordinates export in OBJ writer
  • diff --git a/src/OpenMesh/Core/IO/writer/OBJWriter.cc b/src/OpenMesh/Core/IO/writer/OBJWriter.cc index 434d9bc2..a592e0da 100644 --- a/src/OpenMesh/Core/IO/writer/OBJWriter.cc +++ b/src/OpenMesh/Core/IO/writer/OBJWriter.cc @@ -224,12 +224,22 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec if (!check( _be, _opt)) return false; + // No binary mode for OBJ + if ( _opt.check(Options::Binary) ) { + omout() << "[OBJWriter] : Warning, Binary mode requested for OBJ Writer (No support for Binary mode), falling back to standard." << std::endl; + } - // check writer features - if ( _opt.check(Options::Binary) || // not supported by format - _opt.check(Options::FaceNormal)) - return false; + // check for unsupported writer features + if (_opt.check(Options::FaceNormal) ) { + omerr() << "[OBJWriter] : FaceNormal not supported by OBJ Writer" << std::endl; + return false; + } + // check for unsupported writer features + if (_opt.check(Options::VertexColor) ) { + omerr() << "[OBJWriter] : VertexColor not supported by OBJ Writer" << std::endl; + return false; + } //create material file if needed if ( _opt.check(Options::FaceColor) ){