Commit 49561fbc authored by Robert Maynard's avatar Robert Maynard

vtkmLevelOfDetail now returns 0 when the input can't be converted to VTK-m

parent 1bdc711f
......@@ -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