Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/09/2009 at 09:47, xxxxxxxx wrote:
User Information: Cinema 4D Version: 9.1+ Platform: Windows ; Mac ; Mac OSX ; Language(s) : C++ ;
--------- Howdy,
I have a problem with my input object:
It seems that the GetAndCheckHierarchyClone() function can only handle one type of flag from the list of flags for a given hierarchy:
> Quote: __ > > * * * > > HCLONE_ASIS - Objects unchanged. (Used by e.g. ArrayObject.) > > HCLONE_ASPOLY - Objects cloned as polygons. (Used by e.g. HyperNURBS.) > > HCLONE_ASLINE - Objects cloned as line objects. > > HCLONE_ASSPLINE - Objects cloned as splines. > > * * *
I found this thread: Search thread
... that shows how to handle multiple flags, but it doesn't work if the hierarchy in question is a mixture of different object types.
If the hierarchy is like this:
Plugin Object (input) -Sphere Primitive --Instance (cube) --Spline Primitive
... then the Spline Primitive is ignored
Plugin Object (input) -Spline Primitive --Sphere Primitive --Instance (Cube)
... then both the Sphere Primitive and the Instance are ignored.
How can I get it to handle both flags when both types of objects are in the same hierarchy?
Adios, Cactus Dan
On 04/09/2009 at 02:11, xxxxxxxx wrote:
Can you please post some code.
This seems to work for me:
> \> BaseObject \*res = NULL, \*orig = NULL; \> \> orig = op->GetDown(); \> \> // return if no input object is available \> if (!orig) return NULL; \> \> // request polygonized input \> hh->AddVFlags(VFLAG_POLYGONAL); \> \> Bool dirty = FALSE; \> \> // generate polygonalized clone of input object \> res = op->GetAndCheckHierarchyClone(hh,orig,HCLONE_ASPOLY|HCLONE_ASSPLINE,&dirty;,NULL,TRUE); \>
\> BaseObject \*res = NULL, \*orig = NULL; \> \> orig = op->GetDown(); \> \> // return if no input object is available \> if (!orig) return NULL; \> \> // request polygonized input \> hh->AddVFlags(VFLAG_POLYGONAL); \> \> Bool dirty = FALSE; \> \> // generate polygonalized clone of input object \> res = op->GetAndCheckHierarchyClone(hh,orig,HCLONE_ASPOLY|HCLONE_ASSPLINE,&dirty;,NULL,TRUE); \>
cheers, Matthias
On 04/09/2009 at 09:12, xxxxxxxx wrote:
Howdy,
Thanks for the reply, but I found the solution to my problem in your sticky thread "Poly meshes and GetVirtualObjects()". Probably should've looked at that thread in the first place. ;o)