Ignore:
Timestamp:
01/02/09 23:07:07 (16 years ago)
Author:
mattausch
Message:
 
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  
    55#include <iostream> 
    66#include <queue> 
     7#include <stack> 
    78 
    89 
     
    416417        { 
    417418                // 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]); 
    421421 
    422422                const CHCDemoEngine::Vector3 n = tri.GetNormal(); 
     
    498498        ogzstream ofile(filename.c_str()); 
    499499 
    500         if (!ofile.is_open()) 
    501                 return false; 
    502          
    503  
     500        if (!ofile.is_open()) return false; 
     501         
    504502        int textureCount = 0; 
    505503        ofile.write(reinterpret_cast<char *>(&textureCount), sizeof(int)); 
     
    541539                ofile.write(reinterpret_cast<char *>(&dist), sizeof(float)); 
    542540 
    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)); 
    545543 
    546544                int shapeId = i; 
     
    765763        bool ok = ReadDummyTree(fr); 
    766764 
    767         // read bvh to optain objects (= the leaves of the bvh) 
     765        // read bvh to determine objects (= the leaves of the bvh) 
    768766        if (ok) ok = ReadBvh(fr); 
    769767 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/VisibilitySolutionConverter/VisibilitySolutionConverter.h

    r3242 r3243  
    144144 
    145145 
     146 
    146147        ////////////////////////////////// 
    147148 
Note: See TracChangeset for help on using the changeset viewer.