- Timestamp:
- 01/02/09 23:07:07 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/VisibilitySolutionConverter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/VisibilitySolutionConverter/VisibilitySolutionConverter.cpp
r3242 r3243 5 5 #include <iostream> 6 6 #include <queue> 7 #include <stack> 7 8 8 9 … … 416 417 { 417 418 // no face normals? => create normals 418 const CHCDemoEngine::Triangle3 tri(vertices[i + 0], 419 vertices[i + 1], 420 vertices[i + 2]); 419 const CHCDemoEngine::Triangle3 420 tri(vertices[i], vertices[i + 1], vertices[i + 2]); 421 421 422 422 const CHCDemoEngine::Vector3 n = tri.GetNormal(); … … 498 498 ogzstream ofile(filename.c_str()); 499 499 500 if (!ofile.is_open()) 501 return false; 502 503 500 if (!ofile.is_open()) return false; 501 504 502 int textureCount = 0; 505 503 ofile.write(reinterpret_cast<char *>(&textureCount), sizeof(int)); … … 541 539 ofile.write(reinterpret_cast<char *>(&dist), sizeof(float)); 542 540 543 int shapesPerEnt = 1;544 ofile.write(reinterpret_cast<char *>(&shapesPerEnt ), sizeof(int));541 int shapesPerEntity = 1; 542 ofile.write(reinterpret_cast<char *>(&shapesPerEntity), sizeof(int)); 545 543 546 544 int shapeId = i; … … 765 763 bool ok = ReadDummyTree(fr); 766 764 767 // read bvh to optainobjects (= the leaves of the bvh)765 // read bvh to determine objects (= the leaves of the bvh) 768 766 if (ok) ok = ReadBvh(fr); 769 767 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/VisibilitySolutionConverter/VisibilitySolutionConverter.h
r3242 r3243 144 144 145 145 146 146 147 ////////////////////////////////// 147 148
Note: See TracChangeset
for help on using the changeset viewer.