[vtkusers] vtkPolyDataMapper - Updating (pre-computing) data before adding it to the pipeline

Bill Lorensen bill.lorensen at gmail.com
Wed Jun 23 08:30:11 EDT 2010


mapper->Update() should work.

How do you know it is not working? Try mapper->GetBounds() before and
after the Update.

On Wed, Jun 23, 2010 at 6:33 AM, Barth, Sebastian
<sebastian.barth at iosb.fraunhofer.de> wrote:
> Hello again vtkusers,
>
> I've a vtkPolyData and a vtkPolyDataMapper, which is using the vtkPolyData as input.
> There is no actor on the pipeline that is connected to the vtkPolyDataMapper: The two objects aren't part of the pipeline, yet.
>
> At the earliest when I have connected the vtkPolyDataMapper through any vtkActor to the pipeline and updated it (Update()), the mapper computes its data.
>
> How can I "pre-compute" the data of the mapper to get a faster inclusion into the pipeline?
> I need this because of a very big vtkPolyData (Update() needs about two seconds)!
>
> I've tried mapper->Update() before I connect the mapper to the pipeline, but this seems to do nothing until the mapper is not a part of the pipeline.
>
>
> I'm maybe looking at the wrong thing. Please correct me!
>
>
> Thanks a lot for your help!
>
> Sebastian Barth
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list