corrected small bug (!visited instead of visited)
This commit is contained in:
parent
ec8dde9326
commit
d015efca10
|
@ -293,7 +293,7 @@ public:
|
|||
Pair newInfo = std::make_pair((InputVertexPointer)NULL , 0.0f);
|
||||
for (int ii = 0; ii < vertexToTest.size(); ii++)
|
||||
{
|
||||
if ((*vertexToTest[ii]).IsV())
|
||||
if (!(*vertexToTest[ii]).IsV())
|
||||
{
|
||||
float dist = ((*vertexToTest[ii]).P() - (*fi).P(0)).dot((*fi).N());
|
||||
if (dist > 0)
|
||||
|
@ -365,6 +365,8 @@ public:
|
|||
tri::RequireCompactness(m);
|
||||
InputMesh flipM;
|
||||
|
||||
printf("Input mesh m %i %i\n",m.vn,m.fn);
|
||||
|
||||
tri::Allocator<InputMesh>::AddVertices(flipM,m.vn);
|
||||
ScalarType maxDist=0;
|
||||
InputVertexIterator ci=flipM.vert.begin();
|
||||
|
|
Loading…
Reference in New Issue