Changeset 165 for trunk


Ignore:
Timestamp:
07/11/05 11:07:58 (19 years ago)
Author:
bittner
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Exporter.h

    r162 r165  
    3838  ExportMeshInstance(MeshInstance *mesh) = 0; 
    3939   
    40   SetWireframe() { wireframe = true; } 
    41   SetFilled() { wireframe = false; } 
     40  void SetWireframe() { wireframe = true; } 
     41  void SetFilled() { wireframe = false; } 
    4242 
    4343  static Exporter * 
  • trunk/VUT/GtpVisibilityPreprocessor/src/KdTree.cpp

    r162 r165  
    424424  // C = ct_div_ci  + (ol + or)/queries 
    425425 
    426   int ol = 0, or = node->mObjects.size(); 
     426  int objectsLeft = 0, objectsRight = node->mObjects.size(); 
    427427 
    428428  float minBox = box.Min(axis); 
     
    443443    switch ((*ci).type) { 
    444444    case SortableEntry::MESH_MIN: 
    445       ol++; 
     445      objectsLeft++; 
    446446      break; 
    447447    case SortableEntry::MESH_MAX: 
    448       or--; 
     448      objectsRight--; 
    449449      break; 
    450450    } 
     
    456456      rbox.SetMin(axis, (*ci).value); 
    457457 
    458       float sum = ol*lbox.SurfaceArea() + or*rbox.SurfaceArea(); 
     458      float sum = objectsLeft*lbox.SurfaceArea() + objectsRight*rbox.SurfaceArea(); 
    459459       
    460460      //      cout<<"pos="<<(*ci).value<<"\t q=("<<ql<<","<<qr<<")\t r=("<<rl<<","<<rr<<")"<<endl; 
     
    465465        position = (*ci).value; 
    466466         
    467         objectsBack = ol; 
    468         objectsFront = or; 
     467        objectsBack = objectsLeft; 
     468        objectsFront = objectsRight; 
    469469      } 
    470470    } 
Note: See TracChangeset for help on using the changeset viewer.