IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20920


Ignore:
Timestamp:
Dec 7, 2008, 1:24:20 PM (17 years ago)
Author:
eugene
Message:

fix SkyRegion.index, parent (were not actually used in the past)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/libdvo/src/skyregion_gsc.c

    r17190 r20920  
    153153  skytable[0].Nregions = 0;
    154154
     155  // L0, L1, L2, L3, L4 all have index ranges of 0 -> Nregions and parent values pointing
     156  // at the index of the parent.  SkyTableAppend updates these values based on the
     157  // cumulative count
     158
    155159  SkyTableAppend (skytable, &L0, 0);
    156160  SkyTableAppend (skytable, &L1, skytable[0].Nregions - L0.Nregions);
     
    539543  for (i = 0; i < new[0].Nregions; i++) {
    540544    old[0].regions[i + Nold] = new[0].regions[i];
    541     old[0].regions[i + Nold].parent += Nprev;
     545    old[0].regions[i + Nold].parent += Nold;
     546    old[0].regions[i + Nold].index += Nold;
    542547  }
    543548  return;
     
    560565    notes and questions:
    561566    1) is the regions.index value used?
    562 
    563 
    564567***/
Note: See TracChangeset for help on using the changeset viewer.