[Paraview] Calculator filter doesn't see a PointData vector

David Doria daviddoria at gmail.com
Mon Jan 30 16:29:00 EST 2012


On Mon, Jan 30, 2012 at 1:59 PM, David Doria <daviddoria at gmail.com> wrote:
> I have a data set that has a 308D vector associated with the PointData:
>
> descriptors->SetNumberOfComponents(308);
> descriptors->SetName("Descriptors");
> descriptors->SetNumberOfTuples(polyData->GetNumberOfPoints());
> ...
> polyData->GetPointData()->AddArray(descriptors);
>
> I want to apply a Calculator filter to filter the points by their
> descriptor magnitude. In the Calculator filter, I choose
>
> Attribute mode: PointData
>
> Then if I click the "Vectors" drop down box, I see two other vectors
> (colors and coords), but not "Descriptors". If I click on the
> "Scalars" drop down box, I see 308 entries for a single dimension of
> the descriptor vector with their index appended after an underscore
> (ie. Descriptors_0 ...Descriptors_307), but not the whole vector. Is
> there a way to apply a norm(Descriptors) operation in the Calculator
> filter with this data set?

I found the Auto Convert Properties which lets me threshold the magnitudes
directly in the Threshold filter (this is nice!). However, it still seems
like you should be able to use the magnitude in a calculator filter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120130/1f931daf/attachment.htm>


More information about the ParaView mailing list