On 07/10/2014 at 12:19, xxxxxxxx wrote:
Cinema 4D Version: 14, 15
Language(s) : C++ ;
I would like to get the final state of an animated deformed object, as with a displacer modifier.
The code I am using to get the current state of an object (myGeometry) is:
BaseObject* myGeometry; myGeometry= static_cast<BaseObject*>(myLink->GetClone(COPYFLAGS_0, NULL)); ModelingCommandData mcd; mcd.op = myGeometry; mcd.mode = MODELINGCOMMANDMODE_ALL; mcd.doc = doc; SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT, mcd); myGeometry= static_cast<BaseObject*>(mcd.result->GetIndex(0));
I am then projecting some points over myGeometry using GeRayCollider.
The problem is that the deformation is not considered, and the projection happens on the original undeformed geometry.
Any idea on how to get the final state of the geometry after the application of any (animated) modifiers?