[vtkusers] vtkWarpVector/vtkGlyph3D array problem
bill.lorensen at gmail.com
Thu Dec 21 05:50:34 EST 2017
If you can post a complete compilable C++ or Python example with a small
dataset we can take a look.
On Dec 20, 2017 10:42 PM, "Robby Aungst" <robert.aungst at gmail.com> wrote:
> I'm having an issue where my end goal is to be able to have a set of
> warped points displaying a variety of glyphs with different colors and
> scales. I'm able to get it to work without the vtkWarpVector introduced to
> the pipeline, but as soon as that is introduced the array that I'm using
> for the indexes seems to no longer be found (as well as the scalar data),
> and the glyph defaults to the first in the set and no longer uses the
> scalar data for color. Is there something about vtkWarpVector where it
> doesn't pass along arrays?
> My working pipeline is:
> I store a vtkIntArray on the vtkPolyData with self
> .pointSet.GetPointData().AddArray(indexArray) and then later use it on
> the vtkGlyph3D to set the indexes into my glyph table: self.glyph.
> SetInputArrayToProcess(0, 0, 0, 0, "indexes"). This works great, but when
> I change the pipeline to:
> the vtkGlyph3D can no longer find the "indexes" array from the original
> polydata. It can still find the "DistanceToCamera" array which is used for
> the scale - I'm guessing because it gets created after the vtkWarpVector in
> the pipeline?
> I don't think that vtkWarpVector is supposed to remove the arrays, so
> what's happening? Is there any other way to get the arrays to SetInputArrayToProcess?
> Or some other way to combine vtkWarpVector and vtkGlyph3D?
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> 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