Skip to content
Snippets Groups Projects
Commit d7f0efdc authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap:
Browse files

HTG: Fix an issue in distributed with vtkRandomHyperTreeGridSource

parent 74a105c5
No related branches found
No related tags found
No related merge requests found
......@@ -185,6 +185,11 @@ int vtkRandomHyperTreeGridSource::RequestData(
vtkIdType treeOffset = 0;
int numberOfTrees = (updateExtent[1] - updateExtent[0]) * (updateExtent[3] - updateExtent[2]) *
(updateExtent[5] - updateExtent[4]);
if (numberOfTrees <= 0)
{
// Nothing to generate
return 1;
}
// Gather all tree ids in a vector
std::vector<int> hyperTrees;
......
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