On 6/3/07, Siddharth Palaniappan <[EMAIL PROTECTED]> wrote:
* How do i get the vertex indices and vertex data. I know i have to use TriangleIndexFunctor as I saw it from the archives. But i havent used functors before and I was wondering if anyone of you could direct me to a sample code ..or simply show me its usage.
You could use the TriangleIndexFunctor, for examples have a search through the files in src/osgUtil/* as there a number of examples there.
* I actually used just the X and Y coordinates to triangulate(i.e., just points on XY, by suprresing the z-coord). Now after triangulating, I am guessing the order of the vertices in the vertex array would be changed. So my another issue is how do i re-store the z-coordinates to the corresponding vertices. I'm using a large data set. say from 8k to 200k vertices. And all of them are in a single geode.
You shouldn't need to set the z to zereo, the triangulation should work on the just the xy coords anyway. _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/