[vtkusers] adding cells to unstructured grid don't show up

Dominik Szczerba dominik at itis.ethz.ch
Tue Mar 3 05:26:48 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You have to call grid->Modified() after inserting new cells.
- - Dominik

Bryn Lloyd wrote:
> Hi,
> 
> 
> I have a simple visualization pipeline:
> 
> first I create simple mesh, call it "grid", then I do:
> 
> grid->mapper->actor->render
> 
> 
> This works fine.
> But if I add cells to the mesh using a callback, these new cells are not 
> rendered. Why? I output the current number of cells, and they increase, 
> but this has no effect on the visualization.
> 
> 
> I got it to work by each time creating a new mapper. Is this necessary?
> 
> 
> Thanks
> Bryn
> _______________________________________________
> 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
> 


- --
Dominik Szczerba, Ph.D.
Computational Physics Group
IT'IS Foundation for Research
http://www.itis.ethz.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkmtBegACgkQ/EBMh9bUuzI+3ACbBlXYHSZnZu+K7K1BacGZ4mdu
g4sAnj2KsnsLN2bZaih4TLy5voAXVO/V
=gZw2
-----END PGP SIGNATURE-----



More information about the vtkusers mailing list