- Timestamp:
- 02/16/06 11:10:27 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.h
r542 r647 358 358 void AddBoxToMesh(Mesh *mesh) const; 359 359 360 /** Box faces are turned into polygons. 361 */ 360 362 void ExtractPolys(PolygonContainer &polys) const; 361 363 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp
r646 r647 706 706 707 707 708 void 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 708 722 void BspTree::Construct(const RayContainer &sampleRays, 709 723 AxisAlignedBox3 *forcedBoundingBox) … … 779 793 rays->push_back(new BoundedRay(ray, minT, maxT)); 780 794 } 795 796 PreprocessPolygons(); 781 797 782 798 mStat.polys = (int)polys->size(); -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.h
r646 r647 877 877 878 878 879 void PreprocessPolygons(PolygonContainer &polys); 880 879 881 /** Returns view cell corresponding to 880 882 the invalid view space. If it does not exist, it is created.
Note: See TracChangeset
for help on using the changeset viewer.