fftopology update branch commented (to finish)
This commit is contained in:
parent
55ede4005a
commit
4337bba265
|
|
@ -210,36 +210,36 @@ class EdgeCollapse
|
||||||
//set Face Face topology
|
//set Face Face topology
|
||||||
if (TriMeshType::HasFFTopology())
|
if (TriMeshType::HasFFTopology())
|
||||||
{
|
{
|
||||||
int e0=c.z;
|
//int e0=c.z;
|
||||||
int e1=c.f->FFi(c.z); //opposite edge
|
//int e1=c.f->FFi(c.z); //opposite edge
|
||||||
|
|
||||||
FaceType *f0=c.f;
|
//FaceType *f0=c.f;
|
||||||
FaceType *f1=f0->FFp(c.z);
|
//FaceType *f1=f0->FFp(c.z);
|
||||||
|
//
|
||||||
//take right indexes
|
////take right indexes
|
||||||
FaceType *f00=f0->FFp((e0+1)%3);
|
//FaceType *f00=f0->FFp((e0+1)%3);
|
||||||
FaceType *f01=f0->FFp((e0+2)%3);
|
//FaceType *f01=f0->FFp((e0+2)%3);
|
||||||
int If00=f0->FFi((e0+1)%3);
|
//int If00=f0->FFi((e0+1)%3);
|
||||||
int If01=f0->FFi((e0+2)%3);
|
//int If01=f0->FFi((e0+2)%3);
|
||||||
|
//
|
||||||
//then attach faces
|
////then attach faces
|
||||||
f00->FFp(If00)=f01;
|
//f00->FFp(If00)=f01;
|
||||||
f00->FFi(If00)=If01;
|
//f00->FFi(If00)=If01;
|
||||||
f01->FFp(If01)=f00;
|
//f01->FFp(If01)=f00;
|
||||||
f01->FFi(If01)=If00;
|
//f01->FFi(If01)=If00;
|
||||||
|
|
||||||
//and the ones of face f1
|
////and the ones of face f1
|
||||||
|
|
||||||
f00=f1->FFp((e1+1)%3);
|
//f00=f1->FFp((e1+1)%3);
|
||||||
f01=f1->FFp((e1+2)%3);
|
//f01=f1->FFp((e1+2)%3);
|
||||||
If00=f1->FFi((e1+1)%3);
|
//If00=f1->FFi((e1+1)%3);
|
||||||
If01=f1->FFi((e1+2)%3);
|
//If01=f1->FFi((e1+2)%3);
|
||||||
|
//
|
||||||
//and attach faces
|
////and attach faces
|
||||||
f00->FFp(If00)=f01;
|
//f00->FFp(If00)=f01;
|
||||||
f00->FFi(If00)=If01;
|
//f00->FFi(If00)=If01;
|
||||||
f01->FFp(If01)=f00;
|
//f01->FFp(If01)=f00;
|
||||||
f01->FFi(If01)=If00;
|
//f01->FFi(If01)=If00;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i=AV01().begin();i!=AV01().end();++i)
|
for(i=AV01().begin();i!=AV01().end();++i)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue