Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 23, 2007, 5:25:42 PM (18 years ago)
Author:
patrick
Message:

even more performance saved now, since the obb tree doesn't get build every time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/static_model.cc

    r10216 r10302  
    165165
    166166
    167     // now get the longest side of the first face, this will be the forward vector
    168     Vector forward;
    169     Vector side1 = vertices[0] - vertices[1];
    170     Vector side2 = vertices[1] - vertices[2];
    171     Vector side3 = vertices[2] - vertices[3];
    172 
    173     if( fabs(side1.len()) > fabs(side2.len()) && fabs(side1.len()) > fabs(side3.len()))
    174       forward = side1;
    175     else if( fabs(side2.len()) > fabs(side1.len()) && fabs(side2.len()) > fabs(side3.len()))
    176       forward = side2;
    177     else if( fabs(side3.len()) > fabs(side1.len()) && fabs(side3.len()) > fabs(side2.len()))
    178       forward = side3;
     167
    179168
    180169    // now get the center of the object
Note: See TracChangeset for help on using the changeset viewer.