Merge branch 'fix/issue-85' into 'master'
Fix #85: OBJ export: do not store halfedge texture coordinates of boundary halfedges Closes #85 See merge request OpenMesh/OpenMesh!330
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
#include <OpenMesh/Core/Utils/GenProg.hh>
|
#include <OpenMesh/Core/Utils/GenProg.hh>
|
||||||
#include <OpenMesh/Core/Utils/vector_cast.hh>
|
#include <OpenMesh/Core/Utils/vector_cast.hh>
|
||||||
#include <OpenMesh/Core/Utils/color_cast.hh>
|
#include <OpenMesh/Core/Utils/color_cast.hh>
|
||||||
|
#include <OpenMesh/Core/Utils/Predicates.hh>
|
||||||
#include <OpenMesh/Core/IO/exporter/BaseExporter.hh>
|
#include <OpenMesh/Core/IO/exporter/BaseExporter.hh>
|
||||||
#include <OpenMesh/Core/IO/OMFormat.hh>
|
#include <OpenMesh/Core/IO/OMFormat.hh>
|
||||||
|
|
||||||
@@ -300,10 +301,9 @@ public:
|
|||||||
{
|
{
|
||||||
unsigned int count(0);
|
unsigned int count(0);
|
||||||
_hehandles.clear();
|
_hehandles.clear();
|
||||||
for(typename Mesh::CHIter he_it=mesh_.halfedges_begin();
|
for(auto heh: mesh_.halfedges().filtered(!OpenMesh::Predicates::Boundary()))
|
||||||
he_it != mesh_.halfedges_end(); ++he_it)
|
|
||||||
{
|
{
|
||||||
_hehandles.push_back(vector_cast<Vec2f>(mesh_.texcoord2D( *he_it)));
|
_hehandles.push_back(vector_cast<Vec2f>(mesh_.texcoord2D(heh)));
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user