Re: [osg-users] 3D model database

2009-09-11 Thread Jason Daly
Clay, Bruce wrote: Some of these attributes can be defined programmatically and others will require human assessment. I have been able to find the number of vertices using OSG but I have not found out how to count the polygons. Which number would be a truer or better number to store in

Re: [osg-users] 3D model database

2009-09-11 Thread Clay, Bruce
-boun...@lists.openscenegraph.org] On Behalf Of Jason Daly Sent: Friday, September 11, 2009 11:29 AM To: OpenSceneGraph Users Subject: Re: [osg-users] 3D model database Clay, Bruce wrote: Some of these attributes can be defined programmatically and others will require human assessment. I

Re: [osg-users] 3D model database

2009-09-11 Thread Jean-Sébastien Guay
Hi Jason, Bruce, You should be able to get these numbers by iterating over the primitive sets in each drawable. You'll have to count differently depending on primitive type and primitive set type, but it's not that difficult (there may already be a visitor in OSG that does this, I'm not

Re: [osg-users] 3D model database

2009-09-11 Thread Clay, Bruce
: Friday, September 11, 2009 12:39 PM To: OpenSceneGraph Users Subject: Re: [osg-users] 3D model database Hi Jason, Bruce, You should be able to get these numbers by iterating over the primitive sets in each drawable. You'll have to count differently depending on primitive type and primitive set