Ignore:
Timestamp:
11/09/05 09:27:27 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp

    r393 r394  
    24302430} 
    24312431 
    2432 BspNodeGeometry *BspNodeGeometry::ConstructChild(const BspTree &tree, 
    2433                                                                                                  const Plane3 &splitPlane, 
    2434                                                                                                  const bool side) const 
    2435 { 
    2436         BspNodeGeometry *childCell = new BspNodeGeometry(mPlanes, mSides); 
     2432void BspNodeGeometry::SplitGeometry(BspNodeGeometry frontChild. 
     2433                                                                        BspNodeGeometry backChild, 
     2434                                                                        const BspTree &tree,                                              
     2435                                                                        const Plane3 &splitPlane, 
     2436                                                                        const bool side) const 
     2437{ 
     2438        //BspNodeGeometry *childCell = new BspNodeGeometry(mPlanes, mSides); 
    24372439 
    24382440        // get cross section of new polygon 
    24392441        Polygon3 *planePoly = tree.GetBoundingBox().CrossSection(splitPlane); 
     2442 
     2443        Polygon3 *frontPoly = NULL;//new Polygon3(planePoly->mVertices); 
     2444        Polygon3 *backPoly = NULL; //new Polygon3(planePoly->mVertices); 
    24402445 
    24412446        // polygon is split by all other planes 
     
    24512456                                        VertexContainer splitPts; 
    24522457                                 
    2453                                         Polygon3 *frontPoly = new Polygon3(); 
    2454                                         Polygon3 *backPoly = new Polygon3(); 
     2458                                        frontPoly = new Polygon3(); 
     2459                                        backPoly = new Polygon3(); 
    24552460 
    24562461                                        planePoly->Split(mPlanes[i], *frontPoly, *backPoly, splitPts); 
     
    25552560        return childCell; 
    25562561} 
     2562 
     2563/*void BspNodeGeometry::SplitPolygon(Polygon3 *poly, 
     2564                                                                   const BspTree &tree) const 
     2565{ 
     2566}*/ 
Note: See TracChangeset for help on using the changeset viewer.