Hi, there is a unique option in the std::vector class so osg::vec3
etc...

I am looking for something smilar to std::vector class but will work
like:

  POS p = V.add(Value);


Here V is the Vector, Value is the value to add into the V and p is
the position of the newly inserted value. Main constraint that I am
looking is, if the value that I try to add is already in the list,
then p will be the previous position and there will not be any
addition ( so vector will be unique) otherwise it will return the
position of the new added value.

Is there any such class in OSG or STL ? Have any ideas?

Because, In 3DS and OBJ plugin s and also in Optimizer, if you
combine Geometries, or just import the above file types, the vertexes
are repeating... which is not desired in my case... I try to modify
this plugins to generate a Geometry node, which consist of unique
vertices vector and indice vector.

BR

Send instant messages to your online friends http://uk.messenger.yahoo.com 
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to