[vtkusers] apply filter multiple times
Martin Genet
martin.genet at polytechnique.edu
Sat Jul 6 16:30:56 EDT 2019
Dear all:
I am having some issue setting up a rather complex pipeline involving,
but not exclusively, vtk objects and filters. I think basically the
issue boils down to this: I create an unstructured grid with some vector
field, warp it, modify the vector field (outside vtk), warp it again,
etc. Pretty basic, right? Of course I do not want to reallocate an
unstructured grid for the warped mesh each time I run the warp filter,
but rather modify the one that is allocated the first time I run the
warp filter. Makes sense? I have done this many times, for pipelines
that only involve vtk stuff. However, I am not sure how to do this for
pipelines involving non-vtk operations. Attached is a minimal example: I
create a sphere, warp it along the normals, scale the normals, warp it
again using the already existing warp filter (here the scaling is not
taken into account for some reason), and warp it using a new warp filter
(here it is, but I guess it creates a new object instead of modifying
the existing one, right?). This seem like a trivial issue, but I cannot
seem to figure it out. Can someone help me? Thank you so much.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_vtk.py
Type: text/x-python-script
Size: 1488 bytes
Desc: not available
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190706/324004d8/attachment.bin>
More information about the vtkusers
mailing list