gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/libcoords Coords.cxx


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz/gfx/libcoords Coords.cxx
Date: Wed, 25 Sep 2002 12:04:44 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        02/09/25 12:04:44

Modified files:
        gfx/libcoords  : Coords.cxx 

Log message:
        irregu doesn't crash and clears screen. Nothing seen yet though, but 
reason known: no performGL yet

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libcoords/Coords.cxx.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: gzz/gfx/libcoords/Coords.cxx
diff -c gzz/gfx/libcoords/Coords.cxx:1.2 gzz/gfx/libcoords/Coords.cxx:1.3
*** gzz/gfx/libcoords/Coords.cxx:1.2    Wed Sep 25 11:50:02 2002
--- gzz/gfx/libcoords/Coords.cxx        Wed Sep 25 12:04:44 2002
***************
*** 27,45 ****
                    << fract << " " 
                    << show1 << "\n" ;
        params.resize(0);
        params.reserve(7*ninds);
        cs.resize(ninds/3);
        root = new RootCoords();
        cs[0] = root;
!       for(int i=3; i<ninds; i+=3) {
            int parind = params.size();
            int tp = inds1[i];
            int npars = nparams(tp);
            int parent = inds1[i+1];
            CoordSys *parentcs = cs[parent];
!           if(parentcs == 0) continue; // If parent's not interpolating, 
neither are we.
            int ind1 = inds1[i+2];
            int csind2 = (interpinds ? interpinds[i/3] : -1);
            if(csind2 <= 0) {
                if(show1) {
                    for(int j = 0; j<npars; j++) {
--- 27,54 ----
                    << fract << " " 
                    << show1 << "\n" ;
        params.resize(0);
+       DBG(dbg)  << "Resized\n";
        params.reserve(7*ninds);
+       DBG(dbg)  << "Reserved\n";
        cs.resize(ninds/3);
+       DBG(dbg)  << "Resized2\n";
        root = new RootCoords();
        cs[0] = root;
!       DBG(dbg)  << "setroot\n";
!       for(int i=3; i+3<ninds; i+=3) {
!           DBG(dbg)  << "loop "<<i<<"\n";
            int parind = params.size();
            int tp = inds1[i];
            int npars = nparams(tp);
            int parent = inds1[i+1];
            CoordSys *parentcs = cs[parent];
!           if(parentcs == 0) {
!               DBG(dbg) << "Parent not interp\n";
!               continue; // If parent's not interpolating, neither are we.
!           }
            int ind1 = inds1[i+2];
            int csind2 = (interpinds ? interpinds[i/3] : -1);
+           DBG(dbg) << "inds: "<<parind<<" "<<tp<<" "<<npars<<" "<<parent<<" 
"<<parentcs<<" "<<ind1<<" "<<csind2<<"\n";
            if(csind2 <= 0) {
                if(show1) {
                    for(int j = 0; j<npars; j++) {
***************
*** 59,64 ****
--- 68,74 ----
            c->setSuper(parentcs);
            c->setParams(&(params[0]) + parind);
        }
+       DBG(dbg)  << "end\n";
      }
  
  }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]