Commit e642d236 authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot

Merge topic 'vtkmLevelOfDetail_gracefully_handle_failed_input_conversion'

49561fbc vtkmLevelOfDetail now returns 0 when the input can't be converted to VTK-m
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Allison Vacanti's avatarAllison Vacanti <allison.vacanti@kitware.com>
Merge-request: !5547
parents bf1fd7e8 49561fbc
......@@ -139,6 +139,10 @@ int vtkmLevelOfDetail::RequestData(vtkInformation* vtkNotUsed(request),
{
// convert the input dataset to a vtkm::cont::DataSet
auto in = tovtkm::Convert(input, tovtkm::FieldsFlag::PointsAndCells);
if(in.GetNumberOfCellSets() == 0 || in.GetNumberOfCoordinateSystems() == 0)
{
return 0;
}
vtkmInputFilterPolicy policy;
vtkm::filter::VertexClustering filter;
......
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