minor changes

This commit is contained in:
Nico Pietroni nicopietroni 2009-10-16 15:50:01 +00:00
parent 9d41b0f0d1
commit 5ded5b52bc
4 changed files with 7 additions and 7 deletions

View File

@ -745,7 +745,7 @@ void AssingFather(typename MeshType::VertexType &v,
typename MeshType::CoordType &bary,
MeshType &domain)
{
const MeshType::ScalarType eps=0.00001;
const MeshType::ScalarType eps=(MeshType::ScalarType)0.00001;
assert((father-&(*domain.face.begin()))<domain.face.size());
assert(!(father->IsD()));
assert(!(father==NULL));
@ -829,7 +829,7 @@ bool testParametrization(MeshType &domain,
if (wrong_address>0)
{
printf("\n PAR ERROR %d Wrong Address Num Faces %d\n",wrong_address,domain.fn);
system("pause");
/*system("pause");*/
}
return (is_good);
}

View File

@ -66,7 +66,7 @@ class ParamEdgeFlip : public vcg::tri::PlanarEdgeFlip<BaseMesh, ParamEdgeFlip<Ba
if(!testBaryCoords(bary))
{
printf("BAry0 :%lf,%lf,%lf",bary.X(),bary.Y(),bary.Z());
system("pause");
//system("pause");
}
GetUV<BaseMesh>(father,bary,v->T().U(),v->T().V());
@ -108,7 +108,7 @@ class ParamEdgeFlip : public vcg::tri::PlanarEdgeFlip<BaseMesh, ParamEdgeFlip<Ba
if (!found)
{
printf("\n U : %lf; V : %lf \n",U,V);
system("pause");
//system("pause");
}
//assert(found);
assert(testBaryCoords(bary));

View File

@ -244,7 +244,7 @@ public:
ScalarType d1=((ScalarType)(rand()%1000));
vcg::Point2<ScalarType> vect=vcg::Point2<ScalarType>(d0,d1);
vect.Normalize();
ScalarType norm=0.05;//((ScalarType)(rand()%1000))/(ScalarType)2000;
ScalarType norm=(ScalarType)0.05;//((ScalarType)(rand()%1000))/(ScalarType)2000;
assert(norm<1);
vect*=norm;
int I1;
@ -299,7 +299,7 @@ public:
CoordType XAxis,YAxis; // tangent axis in 3D Object space
///get tangent directions
bool done=TangentDir(I,bary,XAxis,YAxis,0.1);
bool done=TangentDir(I,bary,XAxis,YAxis,(ScalarType)0.1);
if (!done)
{
(*ProjMatrix)[i].SetIdentity();

View File

@ -259,7 +259,7 @@ public:
printf("v1 %lf,%lf \n",f->V(1)->T().U(),f->V(1)->T().V());
printf("v2 %lf,%lf \n",f->V(2)->T().U(),f->V(2)->T().V());
printf("Area Value %lf \n",val);
system("pause");
//system("pause");
}
return fabs(val);