Ignore:
Timestamp:
11/07/05 01:27:32 (19 years ago)
Author:
mattausch
Message:

fixed bug in pvs criterium, computing real area

File:
1 edited

Legend:

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

    r372 r384  
    6565ViewCell *ViewCell::ExtrudeViewCell(const Triangle3 &baseTri, const float height) 
    6666{ 
    67  int i;  
    68  // one mesh per view cell 
     67        // one mesh per view cell 
    6968        Mesh *mesh = new Mesh(); 
    7069         
     
    8685 
    8786        // add base vertices and calculate top vertices 
    88                 for (i = 0; i < 3; ++ i) 
    89                  mesh->mVertices.push_back(baseTri.mVertices[i]); 
     87        for (int i = 0; i < 3; ++ i) 
     88                mesh->mVertices.push_back(baseTri.mVertices[i]); 
    9089         
    9190        // add top vertices      
    92                                                                                                                                 for (i = 0; i < 3; ++ i) 
     91        for (int i = 0; i < 3; ++ i) 
    9392                mesh->mVertices.push_back(baseTri.mVertices[i] + height * triNorm); 
    9493         
Note: See TracChangeset for help on using the changeset viewer.