mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 18:14:38 +00:00
minor changes
This commit is contained in:
parent
9d41b0f0d1
commit
5ded5b52bc
@ -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);
|
||||
}
|
||||
|
||||
@ -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));
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user