Re: [osg-users] How to getting the number of vertices

2013-12-06 Thread Robert Osfield
Hi Kim,

You should have the source code to the OSG, so just search through the
sources of use osgUtil::Statistics, this will show exactly how it's used to
get the onscreen stats that you see in osgviewer when you press 's' several
times.

Robert.


On 6 December 2013 07:08, Kim JongBum osgfo...@tevs.eu wrote:

 i tried the osgUtil::Statistics class to get the number of vertices.

 but i couldn't make it.

 could u get me example of source?

 i would appreciate it thanks guys

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





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

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


Re: [osg-users] How to getting the number of vertices

2013-12-05 Thread Kim JongBum
i tried the osgUtil::Statistics class to get the number of vertices.

but i couldn't make it.

could u get me example of source?

i would appreciate it thanks guys

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





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


Re: [osg-users] How to getting the number of vertices

2013-12-02 Thread Robert Osfield
Hi Kim,

Have a look at the osgUtil::StatsVisitor, you'll find it in the
include/osgUtil/Statistics header.

Robert.


On 2 December 2013 06:49, Kim JongBum osgfo...@tevs.eu wrote:

 Hi,

 i would like to know the number of vertices in the scene.

 i know how to see the value of vertices as i press 's'button.

 but i wanna know how can i get the value
 (ex_for storing into variable)

 Thank you!

 Cheers,
 Kim

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





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

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


[osg-users] How to getting the number of vertices

2013-12-01 Thread Kim JongBum
Hi,

i would like to know the number of vertices in the scene.

i know how to see the value of vertices as i press 's'button.

but i wanna know how can i get the value
(ex_for storing into variable)

Thank you!

Cheers,
Kim

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





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


Re: [osg-users] How to getting the number of vertices

2013-12-01 Thread Trajce Nikolov NICK
Hi,

maybe you write a NodeVisitor and collect these informations on Geode and
Geometry level by getting the vertex arrays and their count. If you want to
see how many are in the current view you traverse only the active children
(setting in the NodeVisitor)

Nick


On Mon, Dec 2, 2013 at 9:49 AM, Kim JongBum osgfo...@tevs.eu wrote:

 Hi,

 i would like to know the number of vertices in the scene.

 i know how to see the value of vertices as i press 's'button.

 but i wanna know how can i get the value
 (ex_for storing into variable)

 Thank you!

 Cheers,
 Kim

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





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




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