* added the IntergerValues per mesh vector to store the integer values after the parametrization has been done
* line 443, commented out "&&(f0<f1))" which makes the solver works faster but it si conceptually wrong , and generates errors if one would read back integer values.
This commit is contained in:
parent
a9b2c94821
commit
cd6c0115c0
|
@ -10,7 +10,7 @@
|
||||||
struct SeamInfo
|
struct SeamInfo
|
||||||
{
|
{
|
||||||
int v0,v0p,v1,v1p;
|
int v0,v0p,v1,v1p;
|
||||||
int integerVal;
|
int integerVar;
|
||||||
//unsigned char RotInt;
|
//unsigned char RotInt;
|
||||||
unsigned char MMatch;
|
unsigned char MMatch;
|
||||||
|
|
||||||
|
@ -19,13 +19,13 @@ struct SeamInfo
|
||||||
int _v0p,
|
int _v0p,
|
||||||
int _v1p,
|
int _v1p,
|
||||||
int _MMatch,
|
int _MMatch,
|
||||||
int _integerVal)
|
int _integerVar)
|
||||||
{
|
{
|
||||||
v0=_v0;
|
v0=_v0;
|
||||||
v1=_v1;
|
v1=_v1;
|
||||||
v0p=_v0p;
|
v0p=_v0p;
|
||||||
v1p=_v1p;
|
v1p=_v1p;
|
||||||
integerVal=_integerVal;
|
integerVar=_integerVar;
|
||||||
MMatch=_MMatch;
|
MMatch=_MMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ struct SeamInfo
|
||||||
v1=S1.v1;
|
v1=S1.v1;
|
||||||
v0p=S1.v0p;
|
v0p=S1.v0p;
|
||||||
v1p=S1.v1p;
|
v1p=S1.v1p;
|
||||||
integerVal=S1.integerVal;
|
integerVar=S1.integerVar;
|
||||||
MMatch=S1.MMatch;
|
MMatch=S1.MMatch;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -50,6 +50,8 @@ struct MeshSystemInfo
|
||||||
int num_integer_cuts;
|
int num_integer_cuts;
|
||||||
///this are used for drawing purposes
|
///this are used for drawing purposes
|
||||||
std::vector<SeamInfo> EdgeSeamInfo;
|
std::vector<SeamInfo> EdgeSeamInfo;
|
||||||
|
///this are values of integer variables after optimization
|
||||||
|
std::vector<int> IntegerValues;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class MeshType>
|
template <class MeshType>
|
||||||
|
@ -438,7 +440,7 @@ public:
|
||||||
FaceType *f1=f0->FFp(k);
|
FaceType *f1=f0->FFp(k);
|
||||||
if (f1==f0)continue;
|
if (f1==f0)continue;
|
||||||
bool seam=Handle_Seams[f0][k];//f0->IsSeam(k);
|
bool seam=Handle_Seams[f0][k];//f0->IsSeam(k);
|
||||||
if ((seam) &&(f0<f1))
|
if ((seam) )//&&(f0<f1))
|
||||||
{
|
{
|
||||||
int v0,v0p,v1,v1p;
|
int v0,v0p,v1,v1p;
|
||||||
unsigned char MM;
|
unsigned char MM;
|
||||||
|
|
Loading…
Reference in New Issue