[vtkusers] ExtractSelectedThresholds

David E DeMarle dave.demarle at kitware.com
Tue Apr 27 19:08:14 EDT 2010


It is tested by Graphics/Testing/Cxx/TestExtraction.cxx

You specify a set of thresholds by making up a linear array of min max
value pairs.

You choose the array that you want to threshold within by assigning
the name of that thresholds array.

So make up a 1 component wide double array, name it "SelectPoints",
and InsertValue(0.5), InsertValue(2.0). Then call
vtkSelectioNode::SetSelectionList(yourthresholdarray).

Then pass the vtkSelectionNode, and the vtkDataSet to
vtkExtractSelectedThresholds.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Tue, Apr 27, 2010 at 6:35 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> I don't see any tests for vtkExtractSelectedThresholds.
>
> I think something like this would be a good one:
>
> http://www.vtk.org/Wiki/VTK/Examples/Broken/ExtractSelectedThresholds
>
> However, I had the following problems:
>
> "This example uses vtkSelectEnclosedPoints to generate a mask (0 or 1)
> if points from one sphere are inside the other. We then try to use
> vtkExtractSelectedThresholds to extract only points that have an
> associated "1" in the "SelectPoints" array.
> How do you specify which array vtkExtractSelectedThresholds should
> use, and how do you specify the threshold?"
>
> Can anyone clarify?
>
> Thanks,
>
> David
> _______________________________________________
> 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
>



More information about the vtkusers mailing list