revert part of this thing I was doing with ccgsubsurf

This commit is contained in:
Joseph Eagar
2009-07-26 13:26:59 +00:00
parent 0b6066c8f1
commit 22bd3c8995
2 changed files with 4 additions and 3 deletions

View File

@@ -2652,7 +2652,7 @@ static CCGDerivedMesh *getCCGDerivedMesh(CCGSubSurf *ss,
for(x = 1; x < gridFaces; x++) {
float w[4];
#if 1 //BMESH_TODO
#if 0 //BMESH_TODO
w[prevS] = weight[x][0][0];
w[S] = weight[x][0][1];
w[nextS] = weight[x][0][2];
@@ -2673,7 +2673,7 @@ static CCGDerivedMesh *getCCGDerivedMesh(CCGSubSurf *ss,
for(y = 1; y < gridFaces; y++) {
for(x = 1; x < gridFaces; x++) {
float w[4];
#if 1 //BMESH_TODO
#if 0 //BMESH_TODO
w[prevS] = weight[y * gridFaces + x][0][0];
w[S] = weight[y * gridFaces + x][0][1];
w[nextS] = weight[y * gridFaces + x][0][2];

View File

@@ -374,7 +374,8 @@ void bmesh_to_mesh_exec(BMesh *bm, BMOperator *op) {
ls[1] = efa->v2->tmp.p;
ls[2] = efa->v3->tmp.p;
/*ensue correct winding*/
/*ensue correct winding. I believe this is
analogous to bubble sort on three elements.*/
if (BMINDEX_GET(ls[0]) > BMINDEX_GET(ls[1])) {
SWAP(BMLoop*, ls[0], ls[1]);
}