Ignore:
Timestamp:
09/16/05 19:24:10 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.cpp

    r268 r286  
    22#include "Mesh.h" 
    33#include "ViewCellBsp.h" // TODO: erase this 
     4#include "Intersectable.h" 
     5 
    46// tolerance value for side relation 
    57#define SIDE_TOLERANCE 0.002f // TODO: Test different values 
    68 
    7 Polygon3::Polygon3(): mMaterial(NULL) 
     9Polygon3::Polygon3(): mMaterial(NULL), mParent(NULL) 
    810{} 
    911 
    10 Polygon3::Polygon3(const VertexContainer &vertices): mVertices(vertices), mMaterial(NULL) 
     12Polygon3::Polygon3(const VertexContainer &vertices): mVertices(vertices), mMaterial(NULL), mParent(NULL) 
    1113{} 
    1214 
    13 Polygon3::Polygon3(Face *face, Mesh *parent) 
     15Polygon3::Polygon3(Intersectable *parent): mMaterial(NULL), mParent(parent) 
     16{ 
     17} 
     18Polygon3::Polygon3(Face *face, Mesh *parentMesh) 
    1419{        
    1520        VertexIndexContainer::iterator it = face->mVertexIndices.begin(); 
    1621        for (; it != face->mVertexIndices.end();  ++it) 
    1722        { 
    18                 mVertices.push_back(parent->mVertices[*it]); 
    19                 mMaterial = parent->mMaterial; 
     23                mVertices.push_back(parentMesh->mVertices[*it]); 
     24                mMaterial = parentMesh->mMaterial; 
    2025                 
    21                 //Debug << parent->mVertices[*it] << endl; 
     26                //Debug << parentMesh->mVertices[*it] << endl; 
    2227        } 
    2328} 
Note: See TracChangeset for help on using the changeset viewer.