Advertisement
Guest User

Untitled

a guest
Aug 1st, 2021
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.01 KB | None | 0 0
  1. --- Common/DataModel/vtkPolyData.cxx    2021-07-31 23:02:31.905458045 +1200
  2. +++ Common/DataModel/vtkPolyData.cxx.new    2021-07-31 23:30:03.545281471 +1200
  3. @@ -12,6 +12,7 @@
  4.       PURPOSE.  See the above copyright notice for more information.
  5.  
  6.  =========================================================================*/
  7. +#include <iostream>
  8.  #include "vtkPolyData.h"
  9.  
  10.  #include "vtkBoundingBox.h"
  11. @@ -523,7 +524,7 @@
  12.      // thread pool).
  13.      for (auto ca = 0; ca < 4; ca++)
  14.      {
  15. -      if ((numCells = cellA[ca]->GetNumberOfCells()) > 250000)
  16. +      if ((numCells = cellA[ca]->GetNumberOfCells()) > 250000000)
  17.        {
  18.          // Lambda to threaded compute bounds
  19.          vtkSMPTools::For(0, numCells, [&](vtkIdType cellId, vtkIdType endCellId) {
  20. @@ -542,6 +543,7 @@
  21.        }
  22.        else if (numCells > 0) // serial
  23.        {
  24. +        std::cout << "Processing Serially" << std::endl;
  25.          vtkIdType npts, ptIdx;
  26.          const vtkIdType* pts;
  27.          for (auto cellId = 0; cellId < numCells; ++cellId)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement