Ignore:
Timestamp:
11/20/06 09:15:28 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1715 r1768  
    17191719         
    17201720        Vector3 vtx; 
     1721         
     1722        ////////////// 
    17211723        //-- compute classification of vertices 
     1724 
    17221725        for (int i = 0; i < 8; ++i) 
    17231726        { 
     
    17321735        } 
    17331736 
     1737        /////////// 
    17341738        //-- find intersections 
     1739 
    17351740        if (onFrontSide && onBackSide) 
    17361741        { 
     
    17561761        { 
    17571762                Vector3 centerOfMass(0); 
     1763 
    17581764                int i; 
    17591765                // compute center of mass 
     
    17641770 
    17651771                vector<VertexData> vertexData; 
    1766                  
    17671772                Vector3 refVec = Normalize(centerOfMass - planePoly->mVertices[0]); 
    17681773 
    17691774                // compute angle to reference point 
    17701775                for (i = 1; i < (int)planePoly->mVertices.size(); ++ i) 
    1771                   { 
     1776                { 
    17721777                    float angle =  
    17731778                      Angle(refVec, centerOfMass - planePoly->mVertices[i], plane.mNormal); 
    17741779                     
    17751780                    vertexData.push_back(VertexData(planePoly->mVertices[i], angle)); 
    1776                   } 
     1781                } 
    17771782                 
    17781783                std::stable_sort(vertexData.begin(), vertexData.end()); 
Note: See TracChangeset for help on using the changeset viewer.