Deleting points from PolygonObject

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/05/2009 at 06:49, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.1/11 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :     C++  ;

---------
Hi,

just a little question this time 😉

When I delete points from a PolygonObject, do I have to delete obsolete Polygons myself, too? Or are they automatically removed from the polygon array?

Greetings,
Jack

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 12/05/2009 at 02:51, xxxxxxxx wrote:

i cant answer your question, but maybe just do it and check the polygoncount whithin cinema. this should give you the answer, or not?

or you could use GePrint and print out the polycount before and after you removed the points

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 12/05/2009 at 03:11, xxxxxxxx wrote:

How are you deleting points, through the modeling library?

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 12/05/2009 at 04:20, xxxxxxxx wrote:

I didn't try yet. Wanted to ask first, before I write lots of code which maybe doesn't work correctly 😉

How would I do it with the modeling library?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 12/05/2009 at 23:45, xxxxxxxx wrote:

Hello Jack,

AutoAlloc<Modelling>mod;
mod->InitObject((PolygonObject* )yourobj,0);
mod->DeletePoint(obj,index);// index = point index to delete
mod->Commit();

Franz

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 13/05/2009 at 03:12, xxxxxxxx wrote:

Ah, that's pretty easy 🙂
Thank you, Franz!

Cheers,
Jack