Re: [osg-users] Get all vertices of an OSG Group

2016-03-25 Thread Tony Vasile
Hi Clement,
  This is rather easy to do. All you need is to define a NodeVisitor and run it 
on the group. Using this way you only need to have an accept call for the Geode 
and process the drawables under the Geode.

Code:

class InfoVisitor : public osg::NodeVisitor
{
public:
InfoVisitor() 
{
setTraversalMode( osg::NodeVisitor::TRAVERSE_ALL_CHILDREN );
}

void apply( osg::Geode& geode )
{
for ( unsigned int i=0; iaccept(visitor);

// After it completes you can retrieve your data structure.


 

Hope this helps.


Tony V

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66628#66628





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Get all vertices of an OSG Group

2016-03-25 Thread Clement Begotto
Hi,

I have to work on a point cloud which was stored in .osgb files for LOD 
management reasons. I have extracted it in an osg::Group, then this Group 
contains other Groups and so on.

I need to access every points of my cloud to extract coordinate or colors. I 
don't know if there is an easy way to do it since these are contained in 
osg::Drawables that are contained in osg::Geodes.

Do you know a simple way to do it ? Or do I have to explorate my first group 
recursivly in order to get vertices and colors arrays and to copy them in a 
std::map ?

... 

Thank you!

Cheers,
Clement

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66627#66627





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Does OSG still build against Qt 4.8.7?

2016-03-25 Thread MacPorts

Hi Christian,

CORRECTION:


in that specific case there is only Qt4 installed on the machine. In
this case OSG won't even configure properly.


OSG got installed "properly". I mean that the dependent project which I 
was trying to build didn't configure properly, simply because the 
libosgqt library wasn't existing.


Marko
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] is osg used with smartmfc?

2016-03-25 Thread 韩志平
Hello:
  There is a question to trouble with me.
  I want to use osg with smartmfc in wince.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org