[vtkusers] Help with vtkActorCollection (correction !!!)
michal strzelecki
nexgen at poczta.onet.pl
Wed Jul 23 08:03:30 EDT 2003
> Hi,
>
> I tried to use vtkPropCollection instead, and 'ren getProps', but
> unfortunately it made no difference. 'allActors GetNumberOfItems' still
> generates a 0.
>
> Can the error be somewhere else?
>
> Johanna
>
>
I workin in c++ and I don't know tcl, but try this:
only:
set allActors [ren1 GetActors]
//or
set allActors [ren1 GetProps]
$allActors GetNumberOfItems
Do not use
vtkActorCollection allActors
because you in this way create a new actorcollection instead of create only
a pointer
michal
More information about the vtkusers
mailing list