Changeset 647 for GTP


Ignore:
Timestamp:
02/16/06 11:10:27 (19 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.h

    r542 r647  
    358358  void AddBoxToMesh(Mesh *mesh) const; 
    359359 
     360  /** Box faces are turned into polygons. 
     361  */ 
    360362  void ExtractPolys(PolygonContainer &polys) const; 
    361363 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp

    r646 r647  
    706706 
    707707 
     708void BspTree::PreprocessPolygons(PolygonContainer &polys) 
     709{ 
     710        // preprocess: throw out polygons coincident to the view space box (not needed) 
     711        PolygonContainer boxPolys; 
     712        mBox.ExtractPolygons(boxPolys); 
     713        vector<Plane3> boxPlanes; 
     714        PolygonContainer::const_iterator pit, pit_end = polys->end(); 
     715 
     716        for (pit = polys->begin(); pit != pit_end; ++ pit) 
     717        { 
     718                 
     719        } 
     720} 
     721 
    708722void BspTree::Construct(const RayContainer &sampleRays, 
    709723                                                AxisAlignedBox3 *forcedBoundingBox) 
     
    779793                        rays->push_back(new BoundedRay(ray, minT, maxT)); 
    780794        } 
     795 
     796        PreprocessPolygons(); 
    781797 
    782798        mStat.polys = (int)polys->size(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.h

    r646 r647  
    877877 
    878878 
     879        void PreprocessPolygons(PolygonContainer &polys); 
     880 
    879881        /** Returns view cell corresponding to  
    880882                the invalid view space. If it does not exist, it is created. 
Note: See TracChangeset for help on using the changeset viewer.