[vtkusers] filling a hollow polygon with workable elements
David Doria
daviddoria+vtk at gmail.com
Fri May 28 09:02:09 EDT 2010
On Tue, Apr 27, 2010 at 2:10 PM, adam lev libfeld <adam.inf at gmail.com> wrote:
> I am trying to simulate the flow of heat through a body. In order for me to
> do that I need to get the volume of the polygon I am working with (a
> vtkCylinderSource) in some form i can work with, preferably a set of
> uniformly distributed cells.
> there must be an easy way of doing this but I was unable to find it..
> Adam
In this submission:
http://www.midasjournal.org/browse/publication/713
There is class called vtkVoxelizePolyData. It won't "fill" your
object with cells, but it will overlay a grid of cells. You can then
check which of these cells are inside the surface.
Hope this gives you a place to start.
David
More information about the vtkusers
mailing list