- Timestamp:
- 11/09/05 09:27:27 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
r393 r394 2430 2430 } 2431 2431 2432 BspNodeGeometry *BspNodeGeometry::ConstructChild(const BspTree &tree, 2433 const Plane3 &splitPlane, 2434 const bool side) const 2435 { 2436 BspNodeGeometry *childCell = new BspNodeGeometry(mPlanes, mSides); 2432 void BspNodeGeometry::SplitGeometry(BspNodeGeometry frontChild. 2433 BspNodeGeometry backChild, 2434 const BspTree &tree, 2435 const Plane3 &splitPlane, 2436 const bool side) const 2437 { 2438 //BspNodeGeometry *childCell = new BspNodeGeometry(mPlanes, mSides); 2437 2439 2438 2440 // get cross section of new polygon 2439 2441 Polygon3 *planePoly = tree.GetBoundingBox().CrossSection(splitPlane); 2442 2443 Polygon3 *frontPoly = NULL;//new Polygon3(planePoly->mVertices); 2444 Polygon3 *backPoly = NULL; //new Polygon3(planePoly->mVertices); 2440 2445 2441 2446 // polygon is split by all other planes … … 2451 2456 VertexContainer splitPts; 2452 2457 2453 Polygon3 *frontPoly = new Polygon3();2454 Polygon3 *backPoly = new Polygon3();2458 frontPoly = new Polygon3(); 2459 backPoly = new Polygon3(); 2455 2460 2456 2461 planePoly->Split(mPlanes[i], *frontPoly, *backPoly, splitPts); … … 2555 2560 return childCell; 2556 2561 } 2562 2563 /*void BspNodeGeometry::SplitPolygon(Polygon3 *poly, 2564 const BspTree &tree) const 2565 { 2566 }*/
Note: See TracChangeset
for help on using the changeset viewer.