cant convert object plugin to poly



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 10/07/2009 at 14:44, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   r11 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    i have one object plugin that cant be converted to polygon. any ideas what could cause this behaviour? i have no clue, since it is based on another plugin, which could be converted..

    thanks for all input..

    cheers,
    ello



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 10/07/2009 at 16:39, xxxxxxxx wrote:

    Does it 'generate' polygon objects?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 11/07/2009 at 02:09, xxxxxxxx wrote:

    depends on what the child is. i clone the object with this:

    > `

      
    \>  BaseObject* clone = static_cast<BaseObject*>(child->GetClone(0, NULL));  
    \>  
    

    `

    edit:
    found out that if i dont use this:
    > `

      
    \>  cloneOfBase = main->GetAndCheckHierarchyClone(hh,baseMesh,HCLONE_ASPOLY,&dirty;,NULL,FALSE);  
    \>  if (!cloneOfBase) goto Error;  
    \>  pobj= ToPoint(cloneOfBase);  
    \>  
    

    `

    but this:
    > `

      
    \>  if (baseMesh->GetDeformCache())  
    \>  pobj = ToPoint(baseMesh->GetDeformCache());  
    \>  else  
    \>  pobj= ToPoint(baseMesh->GetCache());  
    \>  
    

    `

    than it works...

    any ideas?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 11/07/2009 at 03:45, xxxxxxxx wrote:

    additional info.. i need to have the part with GetAndCheckHierarchyClone to be able to use nonpolygonized objects with deformers.. or is there another way to do it?

    cheers,
    ello


Log in to reply