Ignore:
Timestamp:
04/20/09 09:11:32 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/PlyConverter.cpp

    r3359 r3361  
    4444                for (size_t j = 0; j < face.indices.size(); ++ j) 
    4545                { 
    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); 
    4754 
    4855                        /*if (!normals.empty()) 
     
    6976 
    7077                // no face normals? => create normals 
    71                 const SimpleTri tri(geom->mVertices[idx], 
     78                const SimpleTri tri(geom->mVertices[idx + 2], 
    7279                                        geom->mVertices[idx + 1],  
    73                                                         geom->mVertices[idx + 2]); 
     80                                                        geom->mVertices[idx + 0]); 
    7481 
    7582                const SimpleVec n = tri.GetNormal(); 
Note: See TracChangeset for help on using the changeset viewer.