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
54152008
Commit
54152008
authored
Feb 03, 2011
by
Jeff Baumes
Committed by
Kitware Robot
Feb 03, 2011
Browse files
Merge topic 'convert-selection-bug'
c872bb79
Fixing bug where threshold selections were double-negated
parents
721fd2e9
c872bb79
Changes
1
Show whitespace changes
Inline
Side-by-side
Graphics/vtkConvertSelection.cxx
View file @
54152008
...
...
@@ -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
Markdown
is supported
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