[vtkusers] Dynamically Add and Render Points using vtkPolyData

Aron Helser aron.helser at kitware.com
Thu Oct 26 08:31:09 EDT 2017

Hi Andrew -
One potentially easy thing is to use the newest VTK release - performance
often improves between releases.
I see one noob mistake :) ImmediateModeRenderingOn() doesn't do anything
with current VTK - everything is shader-based.

I can see that you are dynamically changing the size of the entire dataset,
to add a small number (~360) of points. I would definitely consider
dividing the points up into batches, so that you are adding points to a
much smaller set. I mean several vtkPoints() and vtkCellArray() instead of

I believe you might also be able to pre-allocate the expected size of the
set, but I'm not sure how to do that?


On Thu, Oct 26, 2017 at 5:11 AM, Andrew <Andrew at ryonic.io> wrote:

> Does Anyone have a more efficient solution?
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171026/dfbb25ed/attachment.html>

More information about the vtkusers mailing list