[vtkusers] Dynamically Add and Render Points using vtkPolyData
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/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers