[vtkusers] Polyhedron to regular cell type

Armin Wehrfritz dkxls23 at gmail.com
Wed Nov 30 10:50:45 EST 2016

Hi Felipe,

I don't think there is an "easy way" in the sense of a ready made
implementation in a basic VTK class (though I think that would be a very
nice feature to have).

However, the OpenFOAM reader in VTK has an option to decompose
polyhedral cells into VTK_TETRA or VTK_PYRAMID. Maybe you have a look at
the implementation there:

Hope this helps!


On 11/30/2016 11:49 AM, Felipe Bordeu wrote:
> hi,
>  I'm working on a filter, and I use a Voronoi library (external) to
> generate polyhedron cells (VTK_POLYHEDRON). I will like to know if there
> is any easy way to identified and to convert some of my polyedron cells
> to a regular cells (hexaedron for example).  In most for my cases all
> the voronoi cells are "classic" cells ( tetras, hexas, wedge...).
> I dont care if the code is expensive, because I do it only in a limited
> number of elements (less than 50).
> Thanks
> Felipe
> using c++, (paraview 5.2)
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

More information about the vtkusers mailing list