Changeset 393 for trunk/VUT/GtpVisibilityPreprocessor
- Timestamp:
- 11/09/05 02:24:23 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
r392 r393 2487 2487 } 2488 2488 2489 if (!planePoly)2490 {2491 //geometry is not changed at all, hence just copy polygons2492 PolygonContainer::const_iterator it, it_end = mPolys.end();2493 2494 for (it = mPolys.begin(); it != it_end; ++ it)2495 childCell->mPolys.push_back(new Polygon3((*it)->mVertices));2496 2497 return childCell;2498 }2499 2500 2489 //-- plane poly splits all other cell polygons 2501 2490 for (int i = 0; i < (int)mPolys.size(); ++ i) … … 2554 2543 2555 2544 //-- finally add the new polygon 2556 childCell->mPolys.push_back(planePoly); 2557 childCell->mPlanes.push_back(splitPlane); 2558 childCell->mSides.push_back(side); 2545 if (planePoly) 2546 { 2547 childCell->mPolys.push_back(planePoly); 2548 childCell->mPlanes.push_back(splitPlane); 2549 childCell->mSides.push_back(side); 2550 } 2559 2551 2560 2552 Debug << "returning new geometry " << mPolys.size() << " CHILD: " << childCell->mPolys.size() << endl;
Note: See TracChangeset
for help on using the changeset viewer.