Ignore:
Timestamp:
10/05/05 18:36:16 (19 years ago)
Author:
mattausch
Message:

updated input file behaviour. started to use pvs templates. removed raycast bugs

File:
1 edited

Legend:

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

    r309 r310  
    99#include "Exporter.h" 
    1010#include "X3dExporter.h" // delete later 
     11#include "ViewCell.h" 
    1112 
    1213#define USE_EXE_PATH false 
     
    3334  p->BuildKdTree(); 
    3435  p->KdTreeStatistics(cout); 
    35  
     36   
     37  // parse view cell hierarchy options 
     38  p->ParseViewCellsOptions(); 
    3639 
    3740  if (p->mViewCellsType == Preprocessor::BSP_VIEW_CELLS) 
    3841  { 
    39            // if BSP tree construction method needs predefined view cells 
    40           if (BspTree::sConstructionMethod == BspTree::VIEW_CELLS) 
     42          if (BspTree::sConstructionMethod == BspTree::FROM_INPUT_VIEW_CELLS) 
    4143          { 
    42                   environment->GetStringValue("Scene.viewcells", buff); 
    43                    
     44                   // view cells input file name 
     45                  environment->GetStringValue("ViewCells.filename", buff); 
    4446                  string vcFilename(buff); 
    45                   
     47 
    4648                  if (vcFilename != "") 
    47                   p->LoadViewCells(vcFilename); 
     49                          p->LoadViewCells(vcFilename); 
    4850                  else 
    4951                          p->GenerateViewCells(); 
    5052 
    51                    Debug << "Viewcells loaded / generated. Number of view cells: " << (int)p->mViewCells.size() << endl; 
     53                  Debug << "Viewcells loaded / generated. Number of view cells: " << (int)p->mViewCells.size() << endl; 
    5254          } 
     55         
     56          p->BuildBspTree(); 
    5357           
    54           p->BuildBspTree(); 
    5558          p->BspTreeStatistics(Debug); 
    5659          p->Export("vc_bsptree2.x3d", false, false, true); 
Note: See TracChangeset for help on using the changeset viewer.