Changeset 319 for trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.cpp
- Timestamp:
- 10/12/05 01:15:22 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.cpp
r318 r319 6 6 #include "Ray.h" 7 7 8 Polygon3::Polygon3(): mMaterial(NULL), mParent(NULL) 8 Polygon3::Polygon3(): 9 mMaterial(NULL), mParent(NULL), mPiercingRays(NULL) 9 10 {} 10 11 11 Polygon3::Polygon3(const VertexContainer &vertices): mVertices(vertices), mMaterial(NULL), mParent(NULL) 12 Polygon3::Polygon3(const VertexContainer &vertices): 13 mVertices(vertices), mMaterial(NULL), mParent(NULL), mPiercingRays(NULL) 12 14 {} 13 15 14 Polygon3::Polygon3(MeshInstance *parent): mMaterial(NULL), mParent(parent) 16 Polygon3::Polygon3(MeshInstance *parent): 17 mMaterial(NULL), mParent(parent) 15 18 {} 16 17 // creates an "infinite" polygon from this plane18 //Polygon3::Polygon3(Plane3 plane)19 //{}20 19 21 20 Polygon3::Polygon3(Face *face, Mesh *parentMesh) … … 27 26 mMaterial = parentMesh->mMaterial; 28 27 } 28 } 29 30 Polygon3::~Polygon3() 31 { 32 DEL_PTR(mPiercingRays); 29 33 } 30 34 … … 352 356 } 353 357 358 RayContainer *Polygon3::GetPiercingRays() 359 { 360 if (!mPiercingRays) 361 mPiercingRays = new RayContainer(); 362 return mPiercingRays; 363 } 364 365 void Polygon3::AddPiercingRay(Ray *ray) 366 { 367 if (!mPiercingRays) 368 mPiercingRays = new RayContainer(); 369 //if (binary_search(mPiercingRays.begin(), mPiercingRays.end(), ray)) return false; 370 371 mPiercingRays->push_back(ray); 372 }
Note: See TracChangeset
for help on using the changeset viewer.