Commit 51dc6ff3 authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot

Merge topic 'fix-convert-composite-query'

f9c1d52a Fix array accessor for point field type
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !5407
parents 451a1501 f9c1d52a
......@@ -468,7 +468,7 @@ int vtkConvertSelection::ConvertFromQueryNodeCompositeDataSet(
else if (type == vtkSelectionNode::POINT)
{
insidedness = vtkArrayDownCast<vtkSignedCharArray>(
dataset->GetCellData()->GetAbstractArray("vtkInsidedness"));
dataset->GetPointData()->GetAbstractArray("vtkInsidedness"));
}
else
{
......@@ -476,6 +476,8 @@ int vtkConvertSelection::ConvertFromQueryNodeCompositeDataSet(
return 0;
}
assert(insidedness);
// Convert the insidedness array into an index input.
vtkNew<vtkIdTypeArray> idList;
for (vtkIdType i = 0; i < insidedness->GetNumberOfTuples(); i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment