Commit 0627519c authored by David Thompson's avatar David Thompson
Browse files

Terminate early when possible.

Change-Id: Ibcd1bb931c4f72960a3c997bf4d84653516d70f4
parent fc0ee6cf
...@@ -1165,6 +1165,7 @@ void vtkUnstructuredGrid::SetCells(vtkUnsignedCharArray *cellTypes, ...@@ -1165,6 +1165,7 @@ void vtkUnstructuredGrid::SetCells(vtkUnsignedCharArray *cellTypes,
if (cellTypes->GetValue(i) == VTK_POLYHEDRON) if (cellTypes->GetValue(i) == VTK_POLYHEDRON)
{ {
containPolyhedron = true; containPolyhedron = true;
break; // We can terminate early
} }
} }
......
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