Ignore:
Timestamp:
03/07/06 17:35:50 (19 years ago)
Author:
mattausch
Message:

debug version: fixing render cost with bsp splits
removed natfx trees

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp

    r678 r679  
    29892989        } 
    29902990 
     2991        //Debug << "center: " << center << " new " << center / (float)n << endl; 
     2992 
    29912993        return center / (float)n; 
    29922994} 
     
    30133015 
    30143016 
    3015 void BspNodeGeometry::SplitGeometry(BspNodeGeometry &front, 
     3017bool BspNodeGeometry::SplitGeometry(BspNodeGeometry &front, 
    30163018                                                                        BspNodeGeometry &back, 
    30173019                                                                        const Plane3 &splitPlane, 
     
    30263028 
    30273029        //-- new polygon splits all other polygons 
    3028         for (int i = 0; i < (int)mPolys.size(); ++ i) 
     3030        for (int i = 0; i < (int)mPolys.size()/* && planePoly*/; ++ i) 
    30293031        { 
    30303032                /// don't use epsilon here to get exact split planes 
     
    30543056                                        else 
    30553057                                        { 
     3058                                                Debug << "no f! " << endl; 
    30563059                                                DEL_PTR(frontPoly); 
    30573060                                        } 
     3061 
    30583062                                        if (backPoly->Valid(epsilon)) 
    30593063                                        { 
     
    30623066                                        else 
    30633067                                        { 
     3068                                                Debug << "no b! " << endl; 
    30643069                                                DEL_PTR(backPoly); 
    30653070                                        } 
     
    30793084 
    30803085                                back.Add(new Polygon3(mPolys[i]->mVertices), mPlanes[i]); 
    3081                                 //front.mPolys.push_back(CreateReversePolygon(mPolys[i])); 
     3086                                //front.Add(CreateReversePolygon(mPolys[i]), mPlanes[i]); 
    30823087                                break; 
    30833088                        default: 
     
    30983103                front.Add(planePoly->CreateReversePolygon(), reversePlane); 
    30993104                //front.mPolys.push_back(planePoly->CreateReversePolygon()); 
    3100         } 
     3105                Debug << "plane poly!" << endl; 
     3106        } 
     3107        else 
     3108                Debug << "no plane poly!" << endl; 
     3109 
     3110        return planePoly != NULL; 
    31013111} 
    31023112 
     
    31603170 
    31613171 
    3162 ViewCell * 
    3163 BspTree::GetViewCell(const Vector3 &point) 
     3172ViewCell *BspTree::GetViewCell(const Vector3 &point) 
    31643173{ 
    31653174  if (mRoot == NULL) 
Note: See TracChangeset for help on using the changeset viewer.