[vtkusers] Problems with multiple vtkSphereWidgets
Cory Quammen
cory.quammen at kitware.com
Thu Oct 9 17:03:33 EDT 2014
Rahul,
VTK does not perform well with many actors, so if you have a separate
vtkActor for each sphere, performance can get very slow.
You might want to try vtkGlyph3D with your marker points set as the input.
See http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/Glyph3D for an
example of how this is done with box glyphs. You can change the
vtkCubeSource to vtkSphereSource for your application.
Hope that helps,
Cory
On Thu, Oct 9, 2014 at 4:32 PM, rkhare <rahul.vedic at gmail.com> wrote:
> Hi,
>
> I have an application where I place sphere widgets to mark points in a 3D
> volume. Whenever I slice through the volume, I change the visibility of the
> widgets by turning them on and off. It works fine if there are only 1 or 2
> widgets. However, once the number of widgets go up, the slicing becomes real
> slow. Has anyone else come across this problem? Can anyone suggest a
> solution?
>
> Thank you.
> Rahul.
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Problems-with-multiple-vtkSphereWidgets-tp5729098.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list