Commit ef64ebadd0996486d96664c5e899552035ffadd2

Authored by Pavel Govyadinov
1 parent a506d41f

fixed a small mistake I introduced when deleting comments

Showing 1 changed file with 3 additions and 4 deletions   Show diff stats
stim/gl/gl_spider.h
... ... @@ -93,6 +93,7 @@ class gl_spider
93 93 pV[best][1],
94 94 pV[best][2],
95 95 1);
  96 + next = cT*next;
96 97 setPosition(
97 98 next[0]*S[0]*R[0],
98 99 next[1]*S[1]*R[1],
... ... @@ -173,7 +174,6 @@ class gl_spider
173 174 temp[2] = d_s[2]+dt*(float) j;
174 175  
175 176 temp = (temp.sph2cart()).norm(); //back to cart
176   - // file << temp[0] << "," << temp[1] << "," << temp[2] << endl;
177 177 dV.push_back(temp);
178 178 if(cos(Y.dot(temp))< 0.087){ Y[0] = 0.0; Y[1] = 1.0;}
179 179 else{Y[0] = 1.0; Y[1] = 0.0;}
... ... @@ -197,7 +197,6 @@ class gl_spider
197 197 void
198 198 genPositionVectors(float delta = 0.2)
199 199 {
200   - ofstream file;
201 200 //Set up the vectors necessary for Rectangle creation.
202 201 vec<float> Y(1.0,0.0,0.0);
203 202 vec<float> pos(0.0,0.0,0.0);
... ... @@ -447,8 +446,8 @@ class gl_spider
447 446 m[0],
448 447 m[0]);
449 448  
450   -// glGetFloatv(GL_TEXTURE_MATRIX, curTrans);
451   -// cT.set(curTrans);
  449 + glGetFloatv(GL_TEXTURE_MATRIX, curTrans);
  450 + cT.set(curTrans);
452 451 // printTransform();
453 452  
454 453 CHECK_OPENGL_ERROR
... ...