[osg-users] Analyzing the Topology of osg::Geometry

wangmiao wangmiao at ict.ac.cn
Wed Oct 17 07:14:50 PDT 2007

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" <zmy01 at aub.edu.lb>
To: <osg-users at 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list