Humm Yes Adding the setVertexArray() It works better... Too soon to know if it really do what I hope, but it seems to do something logical now.
Thanks a lot Alberto. Muchas gracias :-) Vincent. 2008/4/16, Alberto Luaces <[EMAIL PROTECTED]>: > > Some ideas: > > 1) I think the operator() isn't called because although you set the > PrimitiveSet that osgUtil::DelaunayTriangulator calculated, you didn't > added > the data that the PrimitiveSet is referencing (i.e. your points). You can > do that with Geometry::setVertexArray(). > > 2) A tip: you don't need that dynamic_cast on line 28 since a > osg::DrawElementsUInt is a osg::PrimitiveSet, see this at > > http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01152.html > > Sometimes is very useful to dump some nodes to a .osg file in order to see > what is happening and how data is really laid on the graph. > > HTH, > > Alberto > > El Miércoles 16 Abril 2008ES 10:33:28 Vincent Bourdier escribió: > > > Hi, > > > > Thanks Alberto, I've made some reading in the OSG source code to > understand > > better... > > After that I made my own test, but I don't have the good result : the > > operator() is never called on the geometry > > > > You can see my code here : http://rafb.net/p/PeihdM64.html > > > > Don't read commentaries ^^ they are not updated... > > > > Any idea ? why the operator() is never called ? > > Thanks a lot. > > > > Vincent. > > > > 2008/4/15, Alberto Luaces <[EMAIL PROTECTED]>: > > > El Martes 15 Abril 2008ES 16:26:21 Vincent Bourdier escribió: > > > > Thanks for ideas and help, because It looks unused and complicated > for > > > > me... > > > > > > I don't think it is nor unused nor complicated. I use it heavily for > my > > > projects and I find it very useful. It's the best way to retrieve back > > > the geometry from the scene, and in my opinion, in a very clever > manner > > > that makes it very extensible. > > > > > > It is simple: is a template visitor that is built around some class of > > > yours > > > that collects data information with operator() method. > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

