Re: [osg-users] Questions about vertex and index arrays for geometry

2007-10-27 Thread Andreas Goebel
Hi, If I have four vertices, is it as easy as pushing back numbers 0, 1, 2, 1, 2, 3 to the index-array and I get two triangles sharing vertices 1 and 2? And does the geometry use the index-array automatically if there is one? Because at the moment I donĀ“t have an index-array and the

Re: [osg-users] Questions about vertex and index arrays for geometry

2007-10-27 Thread Stephan Huber
Hi, Andreas Goebel schrieb: There is still a problem: How do I tell osg::Geometry that one of the arrays size has chaged? It does work, of course, if I do a setVertexArray again, but if I want it to stay the same vertexArray, is there a way to tell the geometry that its size has changed?

Re: [osg-users] Questions about vertex and index arrays for geometry

2007-10-27 Thread Andreas Goebel
Stephan Huber schrieb: Hi, Andreas Goebel schrieb: There is still a problem: How do I tell osg::Geometry that one of the arrays size has chaged? It does work, of course, if I do a setVertexArray again, but if I want it to stay the same vertexArray, is there a way to tell the geometry