Hello All,

I have seen in the past that some people have wanted to be able to count
the number of polygons/triangles (and perhaps vertices) in a particular
scene.  I have also wanted such functionality.

So I have decided to implement a small set of simple utility methods to do
just that, and contribute it to the list.

I am attaching my code for review by the list.  If you see any problems
please let me know and I will resolve them.  Hopefully j3d.org (and other
websites) can roll this code into their existing utility packages.

The code can:
1) count the number of triangles rooted at a particular node
2) count the number of triangles in a particular Geometry
3) count the number of vertices rooted at a particular node
4) count the number of vertices in a particular Geometry

And the code is clean, understandable, and quite easily modifiable.
Enjoy!

Ian Nieves

Attachment: GeometryCounter.java
Description: java/

Reply via email to