[vtkusers] Fill in 2D vtkPolyData

David Gobbi david.gobbi at gmail.com
Tue Apr 10 11:27:12 EDT 2012


Hi Jonathan,

VTK can convert polylines to polygons via a constrained Delaunay
algorithm, using the vtkDelaunay2D filter.  You should be able to find
an example on the wiki.

Also, if you are familiar with git, you can try out my
vtkContourToPolygonFilter, it works with VTK 5.10:

http://review.source.kitware.com/#/c/3785/

 - David


On Tue, Apr 10, 2012 at 9:11 AM, Jonathan Morra <jonmorra at gmail.com> wrote:
> If it makes any difference, my vtkPolyData is composed only of lines.
>
>
> On Mon, Apr 9, 2012 at 7:59 PM, Jonathan Morra <jonmorra at gmail.com> wrote:
>>
>> I have a 2D vtkPolyData that is an outline.  I want to draw the inside of
>> the contour with a specified opacity.  How do I go about doing this?
>>
>> Thanks



More information about the vtkusers mailing list