On Tue, 2006-10-24 at 19:12 +0100, Roger James wrote:
> On yet further thought, what you are suggesting seems OK. The only
> suggestion I would make is that before a stateSet is inserted in the map in
> processMaterial it should be purged of all attributes that are not currently
> involved in the generation of collada materials. This should help eliminate
> some duplicate materials being inserted in the map.

This sounds like something to unit test. The definition of std::map
requires that no two elements in the container have the same key.

Any failure in the StateSetLess functor will be problematic within the
map (eg crashing, inability to access duplicate materials). It might
also be a problem in the output file or just harmless redundancy.

Regards,
Marcus


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

Reply via email to