Changed the GetInfo of the hole stuff. Now it require the userbit specified
This commit is contained in:
parent
a70fd3daa5
commit
f1d6d5d32a
|
@ -581,10 +581,10 @@ template<class EAR>
|
|||
}
|
||||
|
||||
template<class EAR>
|
||||
static int EarCuttingFill(MESH &m, int sizeHole,bool Selected = false, CallBackPos *cb=0)
|
||||
static int EarCuttingFill(MESH &m, int sizeHole, const int UBIT, bool Selected = false, CallBackPos *cb=0)
|
||||
{
|
||||
std::vector< Info > vinfo;
|
||||
int UBIT = GetInfo(m, Selected,vinfo);
|
||||
// int UBIT = GetInfo(m, Selected,vinfo);
|
||||
|
||||
typename std::vector<Info >::iterator ith;
|
||||
//Info app;
|
||||
|
@ -616,10 +616,10 @@ template<class EAR>
|
|||
// it returns the number of created holes.
|
||||
|
||||
template<class EAR>
|
||||
static int EarCuttingIntersectionFill(MESH &m, int sizeHole, bool Selected = false, CallBackPos *cb=0)
|
||||
static int EarCuttingIntersectionFill(MESH &m, int sizeHole, const int UBIT, CallBackPos *cb=0)
|
||||
{
|
||||
std::vector<Info > vinfo;
|
||||
int UBIT = GetInfo(m, Selected,vinfo);
|
||||
// int UBIT = GetInfo(m, Selected,vinfo);
|
||||
std::vector<FaceType > vf;
|
||||
PosType sp;
|
||||
PosType ap;
|
||||
|
@ -674,12 +674,9 @@ template<class EAR>
|
|||
|
||||
|
||||
|
||||
static int GetInfo(MESH &m,bool Selected ,std::vector<Info >& VHI)
|
||||
static void GetInfo(MESH &m, const int UBIT, bool Selected ,std::vector<Info >& VHI)
|
||||
{
|
||||
FaceIterator fi;
|
||||
int UBIT = FaceType::LastBitFlag();
|
||||
|
||||
for(fi = m.face.begin(); fi!=m.face.end(); ++fi)
|
||||
for(FaceIterator fi = m.face.begin(); fi!=m.face.end(); ++fi)
|
||||
{
|
||||
if(!(*fi).IsD())
|
||||
{
|
||||
|
@ -721,7 +718,6 @@ template<class EAR>
|
|||
}//S & !S
|
||||
}//!IsD()
|
||||
}//for principale!!!
|
||||
return UBIT;
|
||||
}
|
||||
|
||||
//Minimum Weight Algorithm
|
||||
|
@ -919,7 +915,7 @@ template<class EAR>
|
|||
triangulate(m,f,k,j,vi,vv);
|
||||
}
|
||||
|
||||
static void MinimumWeightFill(MESH &m, int holeSize, bool Selected)
|
||||
static void MinimumWeightFill(MESH &m, const int UBIT, int holeSize, bool Selected)
|
||||
{
|
||||
FaceIterator fi;
|
||||
std::vector<PosType > vvi;
|
||||
|
@ -927,7 +923,7 @@ template<class EAR>
|
|||
|
||||
std::vector<Info > vinfo;
|
||||
typename std::vector<Info >::iterator VIT;
|
||||
GetInfo(m, Selected,vinfo);
|
||||
GetInfo(m, UBIT, Selected,vinfo);
|
||||
|
||||
for(VIT = vinfo.begin(); VIT != vinfo.end();++VIT)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue