About STL Slicing and Extracting the Inner Loops data

Thanks for your suggestions…

  • David, I am using vtkStripper, and that stipper is in a loop, where multiThreaded operation takes place… and when ever I place vtkCleanPolyData before the vtkStripper, it is throwing an error and stopping the process. So I kept it out of the threaded loop, next to the vtkSTLReader.

Now the cleaning process is fast… thanks to vtkStaticCleanPolyData

But,
I have a loop which runs around thousands of times. In that loop the following process takes place:

  1. Setting of Slice Plane (vtkPlane)

  2. Creating Cutter (vtkCutter)

  3. Creating Stripper and connecting PlaneCutter to it (vtkStripper)

  4. Storing the lines from the PlaneCutter->Output() into a vtkCellArray

  5. Iterating through them to extract the points (vtkCellArrayIterator)

The above process happens for every iteration of the loop… I used multi-threading concept and used 8 threads for this process, even though this loop is running very slow when compared to what I am expecting…

  • What classes or functions can help me increase the speed of this loop?
  • Is there any vtk Class/Function in the loop, hindering the speed of the process…?