From 6cd4cc682ce10cce9effa0098d4ed0aee646b30b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 1 Dec 2007 15:30:35 +0000 Subject: [PATCH] Fixed the Polytop::setFrustum and setBoundingBox method --- include/osg/Polytope | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/osg/Polytope b/include/osg/Polytope index f4e5e6a59..99de51771 100644 --- a/include/osg/Polytope +++ b/include/osg/Polytope @@ -64,8 +64,8 @@ class OSG_EXPORT Polytope _planeList.push_back(Plane(-1.0,0.0,0.0,1.0)); // right plane. _planeList.push_back(Plane(0.0,1.0,0.0,1.0)); // bottom plane. _planeList.push_back(Plane(0.0,-1.0,0.0,1.0)); // top plane. - if (withNear) _planeList.push_back(Plane(0.0,0.0,-1.0,1.0)); // near plane - if (withFar) _planeList.push_back(Plane(0.0,0.0,1.0,1.0)); // far plane + if (withNear) _planeList.push_back(Plane(0.0,0.0,1.0,1.0)); // near plane + if (withFar) _planeList.push_back(Plane(0.0,0.0,-1.0,1.0)); // far plane setupMask(); } @@ -77,8 +77,8 @@ class OSG_EXPORT Polytope _planeList.push_back(Plane(-1.0,0.0,0.0,bb.xMax())); // right plane. _planeList.push_back(Plane(0.0,1.0,0.0,-bb.yMin())); // bottom plane. _planeList.push_back(Plane(0.0,-1.0,0.0,bb.yMax())); // top plane. - _planeList.push_back(Plane(0.0,0.0,-1.0,bb.zMin())); // near plane - _planeList.push_back(Plane(0.0,0.0,1.0,bb.zMax())); // far plane + _planeList.push_back(Plane(0.0,0.0,1.0,-bb.zMin())); // near plane + _planeList.push_back(Plane(0.0,0.0,-1.0,bb.zMax())); // far plane setupMask(); }