VTK Decimation using MPI

Hi All,

I have a list of vertices, normals and indices that define the triangles/facets of CAD file within an assembly. I want to decimate each CAD file in the assembly in parallel using MPI.

Here is my workflow.

  1. Create VTK PolyData object in each process

  2. Decimate PolyData object in each process

  3. Recreate list of vertices, normals, indices

  4. Send list back to process 0 using MPISend

  5. Process 0 receives list from other processes and re-creates the assembly list

The key point here is I am using MPI directly not VTKs implementation of MPI support.

My question is, is this the best way to speed up the decimation process in VTK ? Will it work ?

I will appreciate your answers