Changeset 236


Ignore:
Timestamp:
08/12/05 01:40:14 (19 years ago)
Author:
mattausch
Message:

erased compiler errors

Location:
trunk/VUT/GtpVisibilityPreprocessor
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/include/ViewCellBsp.h

    r235 r236  
    7979          /// Pointer to the root cell of the viewspace */ 
    8080          ViewCell *mRootCell; 
     81 
     82 
    8183  }; 
    8284   
  • trunk/VUT/GtpVisibilityPreprocessor/src/Containers.h

    r235 r236  
    1111class SceneGraphNode; 
    1212class Intersectable; 
    13 class Polygon3; 
    1413 
    1514 
     
    3231typedef vector<HierarchyNode *> NodeContainer; 
    3332 
    34 /** Queue storing a soup of polygons used during BSP tree construction 
    35 */ 
    36 typedef queue<Polygon3 *> PolygonQueue; 
    37  
    38  
    3933 
    4034typedef vector<SceneGraphNode *> SceneGraphNodeContainer; 
  • trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.h

    r235 r236  
    77//#include "common.h" 
    88#include "Containers.h" 
     9#include "Mesh.h" 
    910 
    10 class Mesh; 
     11class Polygon3; 
    1112class Plane3; 
    1213class Face; 
    1314 
     15 
     16/** Queue storing a soup of polygons used during BSP tree construction 
     17*/ 
     18typedef queue<Polygon3 *> PolygonQueue; 
    1419 
    1520/** Class representing a general planar polygon in 3d. 
     
    1924public: 
    2025        Polygon3(); 
    21 //      Polygon3(const VertexContainer &vertices); 
     26        Polygon3(const VertexContainer &vertices); 
    2227 
    2328        /** Copies all the vertices of the face. 
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp

    r235 r236  
    1010int BspTree::sTermMaxPolygons = 10; 
    1111int BspTree::sTermMaxDepth = 20; 
    12  
    13 //namespace GtpVisibilityPreprocessor { 
     12int BspTree::sSplitPlaneStrategy = NEXT_POLYGON;  
    1413 
    1514 
     
    412411{ 
    413412        // 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        } 
    415423} 
    416424 
     
    464472        environment->GetIntValue("BspTree.Termination.maxDepth", sTermMaxDepth); 
    465473        environment->GetIntValue("BspTree.Termination.maxPolygons", sTermMaxPolygons); 
     474 
     475        char splitPlaneStrategyStr[60]; 
     476 
     477        environment->GetStringValue("BspTree.splitPlaneStrategy", splitPlaneStrategyStr); 
     478        // TODO: Extract nodes 
    466479} 
    467480 
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h

    r235 r236  
    286286        int mTermMaxDepth; 
    287287 
     288        enum {NEXT_POLYGON, LEAST_SPLITS}; 
     289 
    288290public: 
    289291        /// Parses the environment and stores the global BSP tree parameters 
     
    294296        /// maximal possible depth 
    295297        static int sTermMaxDepth; 
     298 
     299        static int sSplitPlaneStrategy; 
    296300}; 
    297301 
Note: See TracChangeset for help on using the changeset viewer.