Ignore:
Timestamp:
09/13/05 18:31:48 (19 years ago)
Author:
mattausch
Message:

did bsp stuff

File:
1 edited

Legend:

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

    r264 r265  
    395395                SetFilled(); 
    396396 
     397        ViewCellContainer mFoundViewCells; 
     398 
    397399        while (!tStack.empty())  
    398400        { 
     
    422424                        ViewCell *viewCell = dynamic_cast<BspLeaf *>(node)->GetViewCell(); 
    423425                         
    424                         if (viewCell) // export view cell geometry 
    425                                 ExportViewCell(viewCell);        
     426                        if (viewCell) 
     427                                mFoundViewCells.push_back(viewCell); 
    426428                } 
    427429        } 
    428430         
     431        if (!tree.StorePolys()) 
     432        { 
     433                //move consecutive duplicates past the end; store new end 
     434                ViewCellContainer::iterator new_end = unique(mFoundViewCells.begin(), mFoundViewCells.end()); 
     435                // delete all elements past new_end  
     436                mFoundViewCells.erase(new_end, mFoundViewCells.end()); 
     437                ExportViewCells(&mFoundViewCells); 
     438        } 
     439 
    429440        return true; 
    430441} 
Note: See TracChangeset for help on using the changeset viewer.