Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3076 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Dec 4, 2004, 2:52:33 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/importer: small fix in crossProduct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/importer/object.cc

    r3075 r3076  
    812812              prevV = Vector (vertices->getArray()[prevElem->vertexNumber*3], vertices->getArray()[prevElem->vertexNumber*3+1], vertices->getArray()[prevElem->vertexNumber*3+2]) - curV;
    813813              nextV = Vector (vertices->getArray()[firstElem->next->vertexNumber*3], vertices->getArray()[firstElem->next->vertexNumber*3+1], vertices->getArray()[firstElem->next->vertexNumber*3+2]) - curV;
    814               normArray[curElem->vertexNumber] = normArray[curElem->vertexNumber] + *(prevV.cross(nextV).getNormalized());
     814              normArray[curElem->vertexNumber] = normArray[curElem->vertexNumber] + *(nextV.cross(prevV).getNormalized());
    815815             
    816816            }
Note: See TracChangeset for help on using the changeset viewer.