THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2011 at 07:29, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12-R13
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
I have a user who is getting this error message from his NetRender Clients whenever he tries to use one of my plugins with it. Doesn't happen in C4D or NetRender Server. Any idea why there is a Modeling Kernel Error?
** " General Error:: UnfurlObj.Bevel**
Modeling Kernel Error : Failed
_Modeling Kernal Error : Object corrupt "
_
Here's the init method and the method from which the error comes:
// NodeData.Init
//*---------------------------------------------------------------------------*
Bool UnfurlObj::Init(GeListNode* node)
//*---------------------------------------------------------------------------*
{
if (!node) return MessageSystem::Throw(GeLoadString(KDZERR_GENERAL), "UnfurlObj.Init.node");
// For SendModelingCommand() that need a document set
fakeDoc = BaseDocument::Alloc();
if (!fakeDoc) return MessageSystem::Throw(GeLoadString(KDZERR_MEMORY), "UnfurlObj.Init.fakeDoc");
// HTML Documentation
unfurldoc = GetUnfurlDoc();
if (!unfurldoc) return MessageSystem::Throw(GeLoadString(KDZERR_GENERAL), "UnfurlObj.Init.unfurldoc");
// Initialize descriptions container
BaseContainer* bc = static_cast<BaseList2D*>(node)->GetDataInstance();
if (!bc) return MessageSystem::Throw(GeLoadString(KDZERR_GENERAL), "UnfurlObj.Init.bc");
SetDefaults(bc);
// Initialize General ModelingCommandData
gmcd.doc = NULL;
gmcd.bc = NULL;
gmcd.mode = MODELINGCOMMANDMODE_POLYGONSELECTION;
gmcd.flags = MODELINGCOMMANDFLAGS_0;
// Beveling
bevelBC.SetReal(MDATA_BEVEL_ANGLE, 89.0);
bevelBC.SetLong(MDATA_BEVEL_SUBDIVISION, 0L);
bevelBC.SetBool(MDATA_BEVEL_CREATENGONS, FALSE);
bevelBC.SetBool(MDATA_BEVEL_MODE, MDATA_BEVEL_MODE_LINEAR);
bevelBC.SetBool(MDATA_BEVEL_PRESERVEGROUPS, FALSE);
bmcd.doc = fakeDoc;
bmcd.bc = &bevelBC;
bmcd.mode = MODELINGCOMMANDMODE_POLYGONSELECTION;
bmcd.flags = MODELINGCOMMANDFLAGS_0;
return TRUE;
}
// UnfurlObj.Bevel
//*---------------------------------------------------------------------------*
Bool UnfurlObj::Bevel(PolygonObject* pop)
//*---------------------------------------------------------------------------*
{
// Bevel Individual Polygons of Unfurl() result
fakeDoc->InsertObject(mainop, NULL, NULL, FALSE);
bevelBC.SetReal(MDATA_BEVEL_OFFSET1, obc->GetReal(UNFURL_BEVEL_OFFSET1)); // Up
bevelBC.SetReal(MDATA_BEVEL_VARIANCE1, obc->GetReal(UNFURL_BEVEL_VARIANCE1));
bevelBC.SetReal(MDATA_BEVEL_OFFSET2, obc->GetReal(UNFURL_BEVEL_OFFSET2)); // In
bevelBC.SetReal(MDATA_BEVEL_VARIANCE2, obc->GetReal(UNFURL_BEVEL_VARIANCE2));
bmcd.op = pop;
if (!SendModelingCommand(ID_MODELING_BEVEL_TOOL, bmcd))
{
mainop->Remove();
return ErrPrt(GeLoadString(KDZERR_GENERAL)+": UnfurlObj.Bevel");
}
mainop->Remove();
return TRUE;
}