Greetings!

This may be by design, but just in case, I wanted to ask about it. I'm using 
version 3.0.0, and if I look on Line 282 of osgUtil/Optimizer.cpp, the 
MergeGeodesVisitor is created. However, the optimizer object (this) is not 
passed into the constructor, and so the visitor does not have a pointer to the 
optimizer object. 

As a consequence, the visitor cannot access the optimizer's 
_permissibleOptimizationsMap and thus returns true every time 
isOperationPermissibleForObject is called. 

The reason I bring this up is that I do want to merge geodes, but I have four 
geodes in the model that I cannot allow to be merged. I was able to work around 
this problem by creating my own MergeGeodesVisitor, and that seems to be 
working well. I just have to remember not to include MERGE_GEODES in my options 
bit field that I pass into Optimizer::optimize(), and handle it manually myself 
as I described.

Thank you!

Cheers,
Frank

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54046#54046





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to