Changeset 682 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 03/08/06 18:35:34 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r681 r682 3483 3483 BspNodeGeometry back; 3484 3484 3485 3486 3485 BspLeaf *leaf = dynamic_cast<BspViewCell *>(*it)->mLeaf; 3487 3488 3486 mVspBspTree->ConstructGeometry(leaf, geom); 3489 3490 geom.SplitGeometry(front, 3491 back, 3492 *clipPlane, 3493 mViewSpaceBox, 3494 0.0001f); 3495 3496 if (back.Size() >= 3) 3497 exporter->ExportPolygons(back.GetPolys()); 3487 3488 const int cf = Polygon3::ClassifyPlane(geom.GetPolys(), *clipPlane, 0.0005); 3489 3490 if (cf == Polygon3::BACK_SIDE) 3491 { 3492 exporter->ExportPolygons(geom.GetPolys()); 3493 } 3494 else if (cf == Polygon3::SPLIT) 3495 { 3496 geom.SplitGeometry(front, 3497 back, 3498 *clipPlane, 3499 mViewSpaceBox, 3500 0.0001f); 3501 3502 if (back.Size() >= 3) 3503 exporter->ExportPolygons(back.GetPolys()); 3504 } 3498 3505 } 3499 3506 }
Note: See TracChangeset
for help on using the changeset viewer.