if your are using "triangle strip" you will need to access the index buffer by 
using trianglenum*3+"vertex index"(the num you talk about before)  and then use 
the index to access vertex buffer.
if you are using "triangle list" just access the vertex buffer using 
trianglenum*3+"vertex index".

----- Original Message ----- 
From: "Zahraa Yasseen" <[EMAIL PROTECTED]>
To: <osg-users@lists.openscenegraph.org>
Sent: Wednesday, October 17, 2007 7:42 PM
Subject: (ÈðÐÇÌáʾ-´ËÓʼþ¿ÉÄÜÊÇÀ¬»øÓʼþ)[osg-users] Analyzing the Topology of 
osg::Geometry


> Hello,
> 
> Is there a way to tell which vertices (of the vertex array) in an  
> osg::Geometry instance belong to a given face i, regardless of the  
> PrimitiveSet type?
> The query is:
> Given face Id (i), and vertex index (j=0,1,2 if the face is a  
> triangle) in this face,
> What is the index of this vertex in the VertexArray of the osg::Geometry?
> 
> Thanks
> 
> 
> 
> 
> ----------------------------------------------------------------
> 
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to