[vtkusers] vtkWarpVector/vtkGlyph3D array problem

Bill Lorensen bill.lorensen at gmail.com
Thu Dec 21 05:50:34 EST 2017


Robby,

If you can post a complete compilable C++  or Python example with a small
dataset we can take a look.

Bill
On Dec 20, 2017 10:42 PM, "Robby Aungst" <robert.aungst at gmail.com> wrote:

> Hello,
>
> 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:
>
> vtkPolyData->vtkExtractSelectedIds->vtkDistanceToCamera->vtkGlyph3D
>
> 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:
>
> vtkPolyData->vtkExtractSelectedIds->vtkWarpVector->vtkDistan
> ceToCamera->vtkGlyph3D
>
> 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?
>
> Thanks!
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vtk.org/pipermail/vtkusers/attachments/20171221/f6785109/attachment.html>


More information about the vtkusers mailing list