Hi Don, I don't think one should declare an osg::Geometry empty when it has some data attached. I think perhaps the qualification of rejecting geometries with no vertices or primitives should be in the osgUtil::Optimizer code, or perhaps have another method to accompany Geometry::empty() that checks for validGeometry() or something similar.
Robert. On Tue, Aug 4, 2009 at 12:10 AM, <[email protected]> wrote: > (resending this in case the first one didn't get through) > > osg::Geometry::empty() should realistically return true if its vertex list > is empty, regardless of what other attributes might be set - I can't > imagine a scenario where a Geometry could be considered 'non-empty' > without any vertices. > > Might also want to return true if the primitive list is also empty > > Don > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
