Changeset 3361 for GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter
- Timestamp:
- 04/20/09 09:11:32 (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/PlyConverter.cpp
r3359 r3361 44 44 for (size_t j = 0; j < face.indices.size(); ++ j) 45 45 { 46 geom->mVertices.push_back(vertices[faces[i].indices[j]]); 46 SimpleVec h = vertices[faces[i].indices[j]]; 47 SimpleVec v; 48 49 v.x = h.x * 14; 50 v.y = h.z * 14; 51 v.z = h.y * 14; 52 53 geom->mVertices.push_back(v); 47 54 48 55 /*if (!normals.empty()) … … 69 76 70 77 // no face normals? => create normals 71 const SimpleTri tri(geom->mVertices[idx ],78 const SimpleTri tri(geom->mVertices[idx + 2], 72 79 geom->mVertices[idx + 1], 73 geom->mVertices[idx + 2]);80 geom->mVertices[idx + 0]); 74 81 75 82 const SimpleVec n = tri.GetNormal(); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/main.cpp
r3360 r3361 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.