Changeset 236
- Timestamp:
- 08/12/05 01:40:14 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/include/ViewCellBsp.h
r235 r236 79 79 /// Pointer to the root cell of the viewspace */ 80 80 ViewCell *mRootCell; 81 82 81 83 }; 82 84 -
trunk/VUT/GtpVisibilityPreprocessor/src/Containers.h
r235 r236 11 11 class SceneGraphNode; 12 12 class Intersectable; 13 class Polygon3;14 13 15 14 … … 32 31 typedef vector<HierarchyNode *> NodeContainer; 33 32 34 /** Queue storing a soup of polygons used during BSP tree construction35 */36 typedef queue<Polygon3 *> PolygonQueue;37 38 39 33 40 34 typedef vector<SceneGraphNode *> SceneGraphNodeContainer; -
trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.h
r235 r236 7 7 //#include "common.h" 8 8 #include "Containers.h" 9 #include "Mesh.h" 9 10 10 class Mesh;11 class Polygon3; 11 12 class Plane3; 12 13 class Face; 13 14 15 16 /** Queue storing a soup of polygons used during BSP tree construction 17 */ 18 typedef queue<Polygon3 *> PolygonQueue; 14 19 15 20 /** Class representing a general planar polygon in 3d. … … 19 24 public: 20 25 Polygon3(); 21 //Polygon3(const VertexContainer &vertices);26 Polygon3(const VertexContainer &vertices); 22 27 23 28 /** Copies all the vertices of the face. -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
r235 r236 10 10 int BspTree::sTermMaxPolygons = 10; 11 11 int BspTree::sTermMaxDepth = 20; 12 13 //namespace GtpVisibilityPreprocessor { 12 int BspTree::sSplitPlaneStrategy = NEXT_POLYGON; 14 13 15 14 … … 412 411 { 413 412 // TODO: more sophisticated criteria 414 return polyQueue->front()->GetSupportingPlane(); 413 switch (sSplitPlaneStrategy) 414 { 415 case LEAST_SPLITS: 416 break; 417 case NEXT_POLYGON: 418 return polyQueue->front()->GetSupportingPlane(); 419 break; 420 default: 421 break; 422 } 415 423 } 416 424 … … 464 472 environment->GetIntValue("BspTree.Termination.maxDepth", sTermMaxDepth); 465 473 environment->GetIntValue("BspTree.Termination.maxPolygons", sTermMaxPolygons); 474 475 char splitPlaneStrategyStr[60]; 476 477 environment->GetStringValue("BspTree.splitPlaneStrategy", splitPlaneStrategyStr); 478 // TODO: Extract nodes 466 479 } 467 480 -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h
r235 r236 286 286 int mTermMaxDepth; 287 287 288 enum {NEXT_POLYGON, LEAST_SPLITS}; 289 288 290 public: 289 291 /// Parses the environment and stores the global BSP tree parameters … … 294 296 /// maximal possible depth 295 297 static int sTermMaxDepth; 298 299 static int sSplitPlaneStrategy; 296 300 }; 297 301
Note: See TracChangeset
for help on using the changeset viewer.