Changeset 3076 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Dec 4, 2004, 2:52:33 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/object.cc
r3075 r3076 812 812 prevV = Vector (vertices->getArray()[prevElem->vertexNumber*3], vertices->getArray()[prevElem->vertexNumber*3+1], vertices->getArray()[prevElem->vertexNumber*3+2]) - curV; 813 813 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()); 815 815 816 816 }
Note: See TracChangeset
for help on using the changeset viewer.