Hello Antonio,

I don't think there is another way, OpenSG has no internal list for this 
and I guess Dirk will refuse to put one in, since its more an 
application specific problem ;-)

Chers

Matthias

On Monday 05 June 2006 12:04, Antonio Bleile wrote:
> Hi Matthias,
>
> > Hello Antonio,
> >
> > do you want to collect only all materials within a subgraph, or do
> > want them to be unique (maybe these materials are used elsewhere
> > within the scene ?)
> >
> > Collecting materials is easy, simply write a traversal that
> > collects all materials of a geometry and materialgroup. There
> > should be examples how to write a traversal.
>
> Yes, I wrote a traversal which pushes back all materials
> I encounter during the traversal. Before I add the material
> to the list I check if it's already in there... I though
> this was not the most elegant way and is of complexity
> O(n^2)... But as n is very small in most cases, this works
> quite well for me.
>
> Regards,
>
>   Toni
>
>
>
>
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users

-- 
+---------------------+----------------------------+
| VREC GmbH           |                            |
| Matthias Stiller    |                            |
| Robert-Bosch-Str. 7 | tel:    +49 6151 4921034   |
| 64293 Darmstadt     | web:    http://www.vrec.de |
| Germany             | mail:   [EMAIL PROTECTED]         |
+---------------------+----------------------------+


_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to