objects visible in viewport

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

On 25/06/2009 at 08:32, xxxxxxxx wrote:

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

---------Hello All,
i there a fast way to know which objects are visible in current view in getcursorinfo in tooldata ?
my first try was with C4DObjectlist and SelectionListCreate, but i have a link problem on this function objlist->GetObject(f)
here my complete code, some other c4dobjectlist works fine ?!?!?

_

    
    
     _ C4DObjectList *objlist = C4DObjectList::Alloc();
    
    
    
    
    AtomArray *myarray = AtomArray::Alloc();
    
    
    
    
    
    
    
    SelectionListCreate(doc,NULL,bd,dx,dy,NULL,objlist);
    
    
    
    
    
    
    
    if (objlist )
    
    
    
    
    {
    
    
    
    
     
    
    
    
    
    LONG f; 
    
    
    
    
    for (f = 0; f<objlist->GetCount();f++)
    
    
    
    
    {
    
    
    
    
    myarray->Append(objlist->GetObject(f));
    
    
    
    
    GePrint(LongToString(objlist->GetCount()));
    
    
    
    
    }
    
    
    
    
    } _

Al The Best
Franz_

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

On 26/06/2009 at 01:03, xxxxxxxx wrote:

Any Help ? :)
Franz