Changeset 286 for trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.cpp
- Timestamp:
- 09/16/05 19:24:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.cpp
r268 r286 2 2 #include "Mesh.h" 3 3 #include "ViewCellBsp.h" // TODO: erase this 4 #include "Intersectable.h" 5 4 6 // tolerance value for side relation 5 7 #define SIDE_TOLERANCE 0.002f // TODO: Test different values 6 8 7 Polygon3::Polygon3(): mMaterial(NULL) 9 Polygon3::Polygon3(): mMaterial(NULL), mParent(NULL) 8 10 {} 9 11 10 Polygon3::Polygon3(const VertexContainer &vertices): mVertices(vertices), mMaterial(NULL) 12 Polygon3::Polygon3(const VertexContainer &vertices): mVertices(vertices), mMaterial(NULL), mParent(NULL) 11 13 {} 12 14 13 Polygon3::Polygon3(Face *face, Mesh *parent) 15 Polygon3::Polygon3(Intersectable *parent): mMaterial(NULL), mParent(parent) 16 { 17 } 18 Polygon3::Polygon3(Face *face, Mesh *parentMesh) 14 19 { 15 20 VertexIndexContainer::iterator it = face->mVertexIndices.begin(); 16 21 for (; it != face->mVertexIndices.end(); ++it) 17 22 { 18 mVertices.push_back(parent ->mVertices[*it]);19 mMaterial = parent ->mMaterial;23 mVertices.push_back(parentMesh->mVertices[*it]); 24 mMaterial = parentMesh->mMaterial; 20 25 21 //Debug << parent ->mVertices[*it] << endl;26 //Debug << parentMesh->mVertices[*it] << endl; 22 27 } 23 28 }
Note: See TracChangeset
for help on using the changeset viewer.