one assert commented, but more coding needed to make the quadrangulator stable
This commit is contained in:
parent
da7a44c98d
commit
db3d3510b9
|
@ -148,9 +148,9 @@ private:
|
||||||
vcg::TexCoord2<ScalarType> &t1)
|
vcg::TexCoord2<ScalarType> &t1)
|
||||||
{
|
{
|
||||||
vcg::TexCoord2<ScalarType> tmp;
|
vcg::TexCoord2<ScalarType> tmp;
|
||||||
if (t0.n() != t1.n())
|
// if (t0.n() != t1.n())
|
||||||
cerr << "Failed assertion: Quadrangulator::WedgeInterp1" << endl;
|
// cerr << "Failed assertion: Quadrangulator::WedgeInterp1" << endl;
|
||||||
// assert(t0.n()== t1.n()); TODO put back
|
// // assert(t0.n()== t1.n()); TODO put back
|
||||||
tmp.n()=t0.n();
|
tmp.n()=t0.n();
|
||||||
// assert(alpha>=0); TODO put back
|
// assert(alpha>=0); TODO put back
|
||||||
if (alpha<0)
|
if (alpha<0)
|
||||||
|
@ -466,7 +466,8 @@ public:
|
||||||
///then split the tris
|
///then split the tris
|
||||||
SplitTris(Tmesh,factor,tolerance);
|
SplitTris(Tmesh,factor,tolerance);
|
||||||
///join the vertices back!
|
///join the vertices back!
|
||||||
ScalarType EPS=(ScalarType)0.00000001;
|
//ScalarType EPS=(ScalarType)0.00000001;
|
||||||
|
ScalarType EPS=(ScalarType)0.000001;
|
||||||
vcg::tri::Clean<TriMesh>::MergeCloseVertex(Tmesh,EPS);
|
vcg::tri::Clean<TriMesh>::MergeCloseVertex(Tmesh,EPS);
|
||||||
|
|
||||||
vcg::tri::UpdateNormal<TriMesh>::PerFaceNormalized(Tmesh); // update Normals
|
vcg::tri::UpdateNormal<TriMesh>::PerFaceNormalized(Tmesh); // update Normals
|
||||||
|
|
Loading…
Reference in New Issue