Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
c872bb79
Commit
c872bb79
authored
Feb 03, 2011
by
Jeff Baumes
Browse files
Fixing bug where threshold selections were double-negated
Change-Id: I7a7b7c68b514ed000f7c2df4fee3230f85b68c84
parent
52c9dfdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Graphics/vtkConvertSelection.cxx
View file @
c872bb79
...
...
@@ -588,15 +588,10 @@ int vtkConvertSelection::Convert(
vtkErrorMacro
(
"Could not find vtkDataArray for thresholds selection."
);
return
0
;
}
int
inverse
=
0
;
if
(
inputNode
->
GetProperties
()
->
Has
(
vtkSelectionNode
::
INVERSE
()))
{
inverse
=
inputNode
->
GetProperties
()
->
Get
(
vtkSelectionNode
::
INVERSE
());
}
for
(
vtkIdType
id
=
0
;
id
<
dataArr
->
GetNumberOfTuples
();
id
++
)
{
int
keepPoint
=
vtkExtractSelectedThresholds
::
EvaluateValue
(
dataArr
,
id
,
lims
);
if
(
keepPoint
^
inverse
)
if
(
keepPoint
)
{
indices
->
InsertNextValue
(
id
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment