THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/04/2012 at 11:37, xxxxxxxx wrote:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
I normally convert between edges, polygons, and points using the SMC version of the convert tool.
I just found this SelectionChanger helper class in the SDK. But I can't seem to make it work.
It doesn't do anything when I run it:
BaseObject *obj = doc->GetActiveObject(); if(!obj)return FALSE; PolygonObject *pobj = ToPoly(obj); BaseSelect *sel = pobj->GetPointS(); SelectionChanger *sc = SelectionChanger::Alloc(); sc->InitFromSelection(sel, Mpoints, pobj); sc->GetEdgeS(); //<--Does not select any edges from my selected points!? pobj->Message(MSG_UPDATE); EventAdd();
What am I doing wrong?