THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/06/2009 at 13:52, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.1&11
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Hi,
when I open the Object Information on any kind ob object (polygon object or generator) in CINEMA 4D, I see the polygon count.
I need to do the same in my plugin.
> ToPoly(obj)->GetPolygonCount();
This only works if "obj" is a converted polygon object. If it's a generator (e.g. a cube primitive), I always get zero.
How can I get the polygon count from any kind of object?
Cheers & thanks for help,
Jack