Ignore:
Timestamp:
11/01/05 02:37:51 (19 years ago)
Author:
mattausch
Message:

added post merging bsp view cells
fixed bug at per ray subdivision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Camera.cpp

    r263 r362  
    102102    int k =0; 
    103103    for (int j=0; j < rays.size(); j++) 
    104       if (rays[j].leaves.size()) { 
     104      if (rays[j].kdLeaves.size()) { 
    105105        Ray *ray = &(rays[j]); 
    106106        int i; 
    107107        if (1) 
    108         for (i= 0; i < ray->leaves.size(); i++) 
    109           exporter->ExportBox(tree->GetBox(ray->leaves[i])); 
     108        for (i= 0; i < ray->kdLeaves.size(); i++) 
     109          exporter->ExportBox(tree->GetBox(ray->kdLeaves[i])); 
    110110        if (0) 
    111111        for (i= 0; i < ray->meshes.size(); i++) 
     
    130130 
    131131  ray.intersections.clear(); 
    132   ray.leaves.clear(); 
     132  ray.kdLeaves.clear(); 
    133133  ray.meshes.clear(); 
    134    
     134  ray.bspLeaves.clear(); 
     135 
    135136  ray.Init(mPosition, target, Ray::LOCAL_RAY); 
    136137   
Note: See TracChangeset for help on using the changeset viewer.