Hmmm…

 

    if (lhs.getVertexIndices() && rhs.getVertexIndices())

    {

 

        base = lhs.getVertexIndices()->getNumElements();

        merger.merge(lhs.getVertexIndices(),rhs.getVertexIndices());

 

    }

 

Looks like Robert was already thinking of this but it fell through the cracks.

 

Roger


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger James
Sent: 29 October 2006 00:31
To: 'osg users'
Subject: RE: [osg-users] Problem with osg::Optimizer MERGE_GEOMETRY

 

Aha .. looks like the vertex indices are not being modified to reflect the new array.

 

Roger

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger James
Sent: 28 October 2006 21:36
To: 'osg users'
Subject: RE: [osg-users] Problem with osg::Optimizer MERGE_GEOMETRY

 

Oops meant to say OSG_OPTIMIZER=OFF below not NONE.

 

Roger

 

in osgviewer with OSG_OPTIMIZER=NONE you will see that second one has some surfaces missing.

 

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to