Corrected orthographic error in function name. IsFeaseable -> IsFeasible

This commit is contained in:
Paolo Cignoni 2017-06-16 11:33:35 +02:00
parent ed54491d10
commit 59270c3023
3 changed files with 7 additions and 8 deletions

View File

@ -60,7 +60,7 @@ int main( int argc, char **argv )
printf("Mesh has %i vn %i fn\n",m.VN(),m.FN()); printf("Mesh has %i vn %i fn\n",m.VN(),m.FN());
tri::PoissonSolver<MyMesh> PS(m); tri::PoissonSolver<MyMesh> PS(m);
if(!PS.IsFeaseable()) if(!PS.IsFeasible())
{ {
printf("mesh is not homeomorphic to a disk\n"); printf("mesh is not homeomorphic to a disk\n");
return -1; return -1;

View File

@ -541,7 +541,7 @@ class PoissonSolver
public: public:
///return true if is possible to ///return true if is possible to
bool IsFeaseable() bool IsFeasible()
{ {
tri::UpdateTopology<MeshType>::FaceFace(mesh); tri::UpdateTopology<MeshType>::FaceFace(mesh);
int NNmanifoldE=tri::Clean<MeshType>::CountNonManifoldEdgeFF(mesh); int NNmanifoldE=tri::Clean<MeshType>::CountNonManifoldEdgeFF(mesh);
@ -575,13 +575,12 @@ public:
for (size_t i=0;i<mesh.vert.size();i++) for (size_t i=0;i<mesh.vert.size();i++)
{ {
VertexType* v=&mesh.vert[i]; VertexType* v=&mesh.vert[i];
if (v->IsD())continue; if (v->IsD()) continue;
if(v->IsB())to_fix.push_back(v); if(v->IsB()) to_fix.push_back(v);
} }
std::sort(to_fix.begin(),to_fix.end()); std::sort(to_fix.begin(),to_fix.end());
typename std::vector<VertexType*>::iterator new_end=std::unique(to_fix.begin(),to_fix.end()); auto new_end=std::unique(to_fix.begin(),to_fix.end());
int dist=distance(to_fix.begin(),new_end); to_fix.resize(distance(to_fix.begin(),new_end));
to_fix.resize(dist);
} }
///set selected vertices as fixed ///set selected vertices as fixed

View File

@ -184,7 +184,7 @@ public:
tri::Append<VoroMesh,VoroMesh>::Mesh(*rm, m, true); tri::Append<VoroMesh,VoroMesh>::Mesh(*rm, m, true);
int tp0=clock(); int tp0=clock();
tri::PoissonSolver<VoroMesh> PS(*rm); tri::PoissonSolver<VoroMesh> PS(*rm);
if(PS.IsFeaseable()) if(PS.IsFeasible())
{ {
PS.Init(); PS.Init();
PS.FixDefaultVertices(); PS.FixDefaultVertices();