[vtkusers] moving actor

David Doria daviddoria at gmail.com
Wed Oct 12 10:11:29 EDT 2011


On Wed, Oct 12, 2011 at 10:07 AM, rimaa <ilhem.sboui at gmail.com> wrote:
> Hi David,
> this is a part from my code:
>
> for (int i=1 ; i<10;i++)
> {
> vtkSmartPointer<vtkSphereSource> sphere =
> vtkSmartPointer<vtkSphereSource>::New();
> sphere->SetRadius(i);
> sphere->Update();
> }

I see, so you want to see all of these intermediate steps. It is
likely that it is just going too fast and you are just seeing the
final result - so something like sleep() as you suggested does seem to
be in order. I would suggest you use a timer - something like this:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Animation

David



More information about the vtkusers mailing list