Merge branch 'fixOBJWriterMissingTexCoords' into 'master'

applied fix for bad or missing vertex tex coords

See merge request OpenMesh/OpenMesh!145
This commit is contained in:
Jan Möbius
2017-10-24 22:07:45 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -53,6 +53,7 @@
<li>ImporterT: Return a valid FaceHandle when adding non-manifold faces.</li> <li>ImporterT: Return a valid FaceHandle when adding non-manifold faces.</li>
<li>BaseExporter: Added accessor functions for HalfEdgeHandles and faceTexCoords to base exporter and exporter template.</li> <li>BaseExporter: Added accessor functions for HalfEdgeHandles and faceTexCoords to base exporter and exporter template.</li>
<li>OBJ Writer: Added functionality to store FaceTexCoords to objwriter</li> <li>OBJ Writer: Added functionality to store FaceTexCoords to objwriter</li>
<li>OBJ Writer: Applied fix for bad or missing vertex tex coords (Thanks to Gero Müller for the patch)</li>>
<li>OBJ Loader: range check for vertex colors and normals in OBJ loader</li> <li>OBJ Loader: range check for vertex colors and normals in OBJ loader</li>
<li>OBJ Loader: fixed handling of negative indices in OBJ loader</li> <li>OBJ Loader: fixed handling of negative indices in OBJ loader</li>
<li>OM Writer: Fixed OMWriter when no faces are available (Thanks to Jamie Kydd for the patch)</li> <li>OM Writer: Fixed OMWriter when no faces are available (Thanks to Jamie Kydd for the patch)</li>

View File

@@ -363,7 +363,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
{ {
// write vertex texture coordinate index // write vertex texture coordinate index
if (_opt.check(Options::VertexTexCoord)) if (_opt.check(Options::VertexTexCoord))
_out << texMap[_be.texcoord(vh)]; _out << texMap[_be.texcoord(vhandles[j])];
} }
// write vertex normal index // write vertex normal index