Ported the flt plugin across to use osg::Geometry, it still uses a GeoSet

internally, and I will remove this after some futher work.
This commit is contained in:
Robert Osfield
2002-06-27 20:29:32 +00:00
parent 7eaba69bb6
commit 01992a7790
4 changed files with 215 additions and 17 deletions

View File

@@ -199,11 +199,15 @@ void CollectOccludersVisitor::removeOccludedOccluders()
// do so in reverse order so that the iterators remain valid.
for(ShadowVolumeOccluder::HoleList::reverse_iterator holeItr=holeList.rbegin();
holeItr!=holeList.rend();
++holeItr)
)
{
if (occluder->contains(holeItr->getReferenceVertexList()))
{
holeList.erase(holeItr.base());
holeList.erase((++holeItr).base());
}
else
{
++holeItr;
}
}