Changeset 300


Ignore:
Timestamp:
09/28/05 18:13:19 (19 years ago)
Author:
mattausch
Message:

added polygon area (debugged)

File:
1 edited

Legend:

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

    r299 r300  
    123123                vtx.push_back(rot * (*it)); 
    124124         
    125         Vector3 *cur = &vtx.back(); 
     125        Vector3 cur = vtx.back(); 
    126126 
    127127        float area = 0.0f; 
    128128        for (it = vtx.begin(); it != vtx.end(); ++it) 
    129129        { 
    130                 area += cur->y * (*it).x - cur->x * (*it).y; 
    131  
    132                 *cur = (*it); 
     130                area += cur.y * (*it).x - cur.x * (*it).y; 
     131 
     132                cur = *it; 
    133133        } 
    134134 
Note: See TracChangeset for help on using the changeset viewer.