THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/02/2008 at 01:25, xxxxxxxx wrote:
Help!!!!!
I go crazy. What is wrong?
I try to insert the tree and leafs under the Plugin, but it dont't work. Otherwise, if I convert it with 'c' to a polygon-object, it is right.
// this is the source-code:
BaseObject *CBaumPlugin::GetVirtualObjects(PluginObject *op, HierarchyHelp *hh)
{
BaseObject *ret = BaseObject::Alloc(Onull);
BaseObject *botree = tree.op;//pointer to the tree
BaseObject *boleafs = leaf.op;//pointer to the leafs
botree->SetName("tree");
boleafs->SetName("leafs");
botree->InsertUnderLast(ret);
boleafs->InsertUnderLast(ret);
// also tryed with: ret->InsertUnderLast(botree);
return ret;
}
what is wrong ?