Changeset 3374 for GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter
- Timestamp:
- 05/27/09 00:36:21 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/ObjConverter.cpp
r3372 r3374 172 172 for (int i = 0; i < numElements; ++ i) 173 173 { 174 #if 0174 #if 1 175 175 // convert to our camera system: change y and z 176 geom->mVertices[i].x = faceVertices[i].x;176 geom->mVertices[i].x = faceVertices[i].x; 177 177 geom->mVertices[i].y = -faceVertices[i].z; 178 geom->mVertices[i].z = faceVertices[i].y;179 180 geom->mNormals[i].x = faceNormals[i].x;178 geom->mVertices[i].z = faceVertices[i].y; 179 180 geom->mNormals[i].x = faceNormals[i].x; 181 181 geom->mNormals[i].y = -faceNormals[i].z; 182 geom->mNormals[i].z = faceNormals[i].y;182 geom->mNormals[i].z = faceNormals[i].y; 183 183 184 184 #else 185 geom->mVertices[i].x = faceVertices[i].x;186 geom->mVertices[i].y = faceVertices[i].y;187 geom->mVertices[i].z = faceVertices[i].z;188 189 geom->mNormals[i].x = faceNormals[i].x;190 geom->mNormals[i].y = faceNormals[i].y;191 geom->mNormals[i].z = faceNormals[i].z;185 geom->mVertices[i].x = faceVertices[i].x; 186 geom->mVertices[i].y = faceVertices[i].y; 187 geom->mVertices[i].z = faceVertices[i].z; 188 189 geom->mNormals[i].x = faceNormals[i].x; 190 geom->mNormals[i].y = faceNormals[i].y; 191 geom->mNormals[i].z = faceNormals[i].z; 192 192 193 193 #endif … … 294 294 case 'g': // load a new shape 295 295 { 296 if ( !faceVertices.empty())296 if (0 && !faceVertices.empty()) 297 297 { 298 298 ++ mNumShapes; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/main.cpp
r3372 r3374 1 //#include "ObjConverter.h"2 #include "PlyConverter.h"1 #include "ObjConverter.h" 2 //#include "PlyConverter.h" 3 3 #include <iostream> 4 4 #include <time.h> … … 12 12 13 13 //ObjConverter2 converter; 14 //ObjConverter converter;15 PlyConverter converter;14 ObjConverter converter; 15 //PlyConverter converter; 16 16 17 17 cout << "converting obj to dem format" << endl;
Note: See TracChangeset
for help on using the changeset viewer.