Skip to content
Snippets Groups Projects
Commit 488f9761 authored by Vicente Bolea's avatar Vicente Bolea Committed by Kitware Robot
Browse files

Merge topic 'bump-vtkm'


ab25171e vtk-m: Convert exception on unsupp type
ec81514d Remove call to clean grid filter from Clip
90f60b47 vtk-m: bump vtk-m 2.9.1-rc1

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Tested-by: default avatarbuildbot <buildbot@kitware.com>
Reviewed-by: default avatarSujin Philip <sujin.philip@kitware.com>
Merge-request: !10439
parents dbf71f79 ab25171e
No related branches found
No related tags found
No related merge requests found
......@@ -250,7 +250,8 @@ vtkm::cont::DataSet Convert(vtkRectilinearGrid* input, FieldsFlag fields)
// determine the type and call the proper Convert routine
vtkm::cont::DataSet Convert(vtkDataSet* input, FieldsFlag fields)
{
switch (input->GetDataObjectType())
auto typeId = input->GetDataObjectType();
switch (typeId)
{
case VTK_UNSTRUCTURED_GRID:
return Convert(vtkUnstructuredGrid::SafeDownCast(input), fields);
......@@ -267,7 +268,9 @@ vtkm::cont::DataSet Convert(vtkDataSet* input, FieldsFlag fields)
case VTK_UNSTRUCTURED_GRID_BASE:
case VTK_STRUCTURED_POINTS:
default:
return vtkm::cont::DataSet();
const std::string typeStr = vtkDataObjectTypes::GetClassNameFromTypeId(typeId);
const std::string errMsg = "Unable to convert " + typeStr + " to vtkm::cont::DataSet";
throw vtkm::cont::ErrorBadType(errMsg);
}
}
......
......@@ -31,10 +31,6 @@ vtkm::cont::DataSet vtkmClip::internals::ExecuteClipWithField(vtkm::cont::DataSe
fieldFilter.SetInvertClip(insideOut);
auto result = fieldFilter.Execute(in);
// clean the output to remove unused points
vtkm::filter::clean_grid::CleanGrid clean;
result = clean.Execute(result);
return result;
}
VTK_ABI_NAMESPACE_END
......@@ -24,10 +24,6 @@ vtkm::cont::DataSet vtkmClip::internals::ExecuteClipWithImplicitFunction(
functionFilter.SetInvertClip(insideOut);
result = functionFilter.Execute(in);
// clean the output to remove unused points
vtkm::filter::clean_grid::CleanGrid clean;
result = clean.Execute(result);
return result;
}
VTK_ABI_NAMESPACE_END
Subproject commit cfd6d3fbe534343d217c2dce47a46763692db0ec
Subproject commit 4571db1249e0c0667ee1b209c6f13c3462693087
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment