Ignore:
Timestamp:
01/19/06 14:49:56 (18 years ago)
Author:
mattausch
Message:

fixed bug in finalizeviewcells when loading view cells

File:
1 edited

Legend:

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

    r551 r555  
    19371937                bool isAdjacent = true; 
    19381938 
     1939                 
     1940#if 1 
    19391941                // test all planes of current node if still adjacent 
    19401942                for (int i = 0; (i < halfSpaces.size()) && isAdjacent && (node != n); ++ i) 
     
    19501952                        } 
    19511953                } 
    1952  
     1954#else 
     1955                // test all planes of current node if still adjacent 
     1956                for (int i = 0; i < nodeGeom.size()) && isAdjacent && (node != n); ++ i) 
     1957                { 
     1958                        Polygon3 *poly = nodeGeom->mPolys[i]; 
     1959 
     1960                        const int cf = 
     1961                                Polygon3::ClassifyPlane(geom->mPolys, 
     1962                                                                                poly->GetSupportingPlane(), 
     1963                                                                                mEpsilon); 
     1964 
     1965                        if (cf == Polygon3::BACK_SIDE) 
     1966                        { 
     1967                                isAdjacent = false; 
     1968                        } 
     1969                } 
     1970#endif 
    19531971                if (isAdjacent) 
    19541972                { 
Note: See TracChangeset for help on using the changeset viewer.