Changeset 681 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 03/08/06 08:36:06 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r678 r681 1707 1707 if (clipPlane) 1708 1708 { 1709 BspNodeGeometry front; 1710 BspNodeGeometry back; 1711 1712 geom.SplitGeometry(front, 1713 back, 1714 *clipPlane, 1715 mViewSpaceBox, 1716 0.0001f); 1717 1718 if (back.Size() >= 3) 1719 exporter->ExportPolygons(back.GetPolys()); 1709 const int cf = Polygon3::ClassifyPlane(geom.GetPolys(), *clipPlane, 0.0001f); 1710 1711 if (cf == Polygon3::BACK_SIDE) 1712 { 1713 exporter->ExportPolygons(geom.GetPolys()); 1714 } 1715 else if (cf == Polygon3::SPLIT) 1716 { 1717 BspNodeGeometry front; 1718 BspNodeGeometry back; 1719 1720 geom.SplitGeometry(front, 1721 back, 1722 *clipPlane, 1723 mViewSpaceBox, 1724 0.0001f); 1725 1726 if (back.Valid()) 1727 exporter->ExportPolygons(back.GetPolys()); 1728 } 1720 1729 } 1721 1730 else 1722 1731 { 1723 1724 1732 exporter->ExportPolygons(geom.GetPolys()); 1725 1733 }
Note: See TracChangeset
for help on using the changeset viewer.