Ignore:
Timestamp:
03/09/06 04:27:07 (19 years ago)
Author:
mattausch
Message:

fixed a bsp node geometry problem (debug code)

File:
1 edited

Legend:

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

    r682 r683  
    218218        Debug << "\nView cells after initial sampling:\n" << mCurrentViewCellsStats << endl; 
    219219 
    220         if (0) // export initial view cells 
     220        if (1) // export initial view cells 
    221221        { 
    222222                cout << "exporting initial view cells (=leaves) ... "; 
     
    34863486                        mVspBspTree->ConstructGeometry(leaf, geom); 
    34873487 
    3488                         const int cf = Polygon3::ClassifyPlane(geom.GetPolys(), *clipPlane, 0.0005); 
    3489  
    3490                         if (cf == Polygon3::BACK_SIDE) 
     3488                        const int cf = Polygon3::ClassifyPlane(geom.GetPolys(), *clipPlane, 0.00000001f); 
     3489 
     3490                        /*if (cf == Polygon3::BACK_SIDE) 
    34913491                        { 
    34923492                                exporter->ExportPolygons(geom.GetPolys()); 
    34933493                        } 
    34943494                        else if (cf == Polygon3::SPLIT) 
    3495                         { 
     3495                        {*/ 
    34963496                                geom.SplitGeometry(front, 
    34973497                                                                   back, 
    34983498                                                                   *clipPlane, 
    34993499                                                                   mViewSpaceBox,  
    3500                                                                    0.0001f); 
    3501          
    3502                                 if (back.Size() >= 3) 
     3500                                                                   0.00000001f); 
     3501         
     3502                                Debug << "here geo size: " << geom.Size() << endl; 
     3503                                Debug << "here size b: " << back.Size() << " f: " << front.Size() << endl; 
     3504                                if (back.Valid()) 
     3505                                { 
     3506                                        Debug << "here3 size: " << back.Size() << endl; 
    35033507                                        exporter->ExportPolygons(back.GetPolys()); 
    3504                         } 
     3508                                } 
     3509                                else 
     3510                                        Debug << "here2 size: " << back.Size() << endl; 
     3511                        //} 
    35053512                } 
    35063513        } 
Note: See TracChangeset for help on using the changeset viewer.