Bug fix
This commit is contained in:
parent
c842c83b77
commit
33d860cbb9
|
@ -70,7 +70,7 @@ int main(int argc,char ** argv){
|
|||
"Usage: trimesh_hole #algorithm #size filein.ply fileout.ply \n"
|
||||
"#algorithm: \n"
|
||||
" 1) Trivial Ear \n"
|
||||
" 2) Leipa Ear \n"
|
||||
" 2) Minimum weight Ear \n"
|
||||
" 3) Selfintersection Ear \n"
|
||||
" 4) Minimum weight \n"
|
||||
);
|
||||
|
|
|
@ -24,6 +24,9 @@
|
|||
History
|
||||
|
||||
$Log: not supported by cvs2svn $
|
||||
Revision 1.32 2007/01/18 18:15:14 cignoni
|
||||
added missing typenames
|
||||
|
||||
Revision 1.31 2007/01/18 11:17:43 giec
|
||||
The minimum weight algorithm keep the topology consistent.
|
||||
|
||||
|
@ -872,10 +875,17 @@ template<class EAR>
|
|||
|
||||
PosType PF = vv[i];
|
||||
triangulate(m,f, i, j, vi, vv,PF);
|
||||
|
||||
while(f!=m.face.end())
|
||||
{
|
||||
(*f).SetD();
|
||||
++f;
|
||||
m.fn--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void triangulate(MESH &m, FaceIterator f,int i, int j,
|
||||
static void triangulate(MESH &m, FaceIterator &f,int i, int j,
|
||||
std::vector< std::vector<int> > vi, std::vector<PosType > vv, PosType &PosFrom)
|
||||
{
|
||||
if(i + 1 == j){return;}
|
||||
|
@ -996,12 +1006,6 @@ template<class EAR>
|
|||
|
||||
};//close class Hole
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} // end namespace
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue