Merge branch 'Fix_vertex_texcoord_in_obj_writer' into 'master'
Fix vertex texture coordinates export in OBJ exporter (Thanks to Manuel Massing for the patch) See merge request OpenMesh/OpenMesh!149
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
<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: Applied fix for bad or missing vertex tex coords (Thanks to Gero Müller for the patch)</li>>
|
||||
<li>OBJ Writer: Fix vertex texture coordinates export in OBJ writer</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>OM Writer: Fixed OMWriter when no faces are available (Thanks to Jamie Kydd for the patch)</li>
|
||||
|
||||
@@ -270,10 +270,10 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
|
||||
}
|
||||
}
|
||||
|
||||
//collect Texturevertices from vertices
|
||||
//collect Texture coordinates from vertices
|
||||
if(_opt.check(Options::VertexTexCoord))
|
||||
{
|
||||
for (size_t i=0, nF=_be.n_faces(); i<nF; ++i)
|
||||
for (size_t i=0, nV=_be.n_vertices(); i<nV; ++i)
|
||||
{
|
||||
vh = VertexHandle(static_cast<int>(i));
|
||||
t = _be.texcoord(vh);
|
||||
|
||||
Reference in New Issue
Block a user